Poor Arangodb foxx application performance

I have a serious problem with the foxx custom application.

About app

The application is an individual algorithm for finding a path in a graph. It is optimized for public transport. In init, it loads all the necessary data into a javascript variable, and then passes through them. This is faster than accessing db every time.

Problem

When I first access through the api application, it is fast, for example. 300ms But when I make the exact same request a second time, it is very slow. eg. 7000ms.

could you help me? I do not know where to look for errors.

+4
source share
1 answer

, .

№1: .

ArangoDB , init Foxx, . , , arangod. , .

# 2: JavaScript

ArangoDB , , Foxx , , . Foxx, . JavaScript - , , , ( init). . JavaScript , . , .

( , -server.threads) JavaScript , .

+6

Source: https://habr.com/ru/post/1535912/


All Articles