問題タブ [foxx]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
rest - ArangoDB Foxx サービス - API 定義の読み込みに失敗しました
macOS で arangoDB 3.3.3 を使用しています。
ブラウザ経由で arangoDB から JSON コレクションを出力するつもりで、arangoDB が提供する Foxx マイクロサービス ツールを使用しています。arangoDB が提供するインポート スクリプトを使用して、json ファイルをデータベースにインポートしました。
サービス ファイルの zip を arangoDB Web インターフェイスにアップロードし、リンクされたパスにリクエストを送信しようとすると、API ウィンドウに次のエラー メッセージが表示されます。
許可されていないhttp://localhost:8529/_db/_system/_admin/aardvark/foxxes/docs/swagger.json?mount=/getting-started
同じ問題に直面していて、この問題を解決する方法を知っている人はいますか?
microservices - Queries are slower in Foxx microservice
We've noticed significant performance decreases when we move our AQL queries from ArangoDB's own REST API to a custom Foxx microservice. Is this to be expected?
For example, if we run a multithreaded load test from a remote machine that asks for the count of documents in an 800,000-document collection ("return LENGTH(MyCollection)") via the _api/cursor REST endpoint, we can process about 6,500 requests per second. If instead we call our own microservice that returns db._query('LENGTH(MyCollection)'), we can process only about 2,000 requests per second, a 69% decrease in throughput. (With a more complex query that does path traversals, we get a 32% decrease, and with a query that involves a geospatial index, the decrease is 60%.)
We're not sure what's causing this degradation. Any insight would be greatly appreciated.
Thanks!
api - Arangodbがデフォルトのfoxxサービスパスを変更
みなさん、こんにちは 定義済みの Foxx サービスのパスを変更する方法を知っている人はいますか。「IP/ログイン」や「IP/登録」のようなものが欲しいです。デフォルトでは、「_db/...」パスの下でアクセスできます。私が見つけた唯一の方法は、nginx のような Web サーバーを使用して、着信 URL パスを書き換えるか制限することでした。より良い解決策はありますか?
前もって感謝します。