Являются ли встроенные функции mongo быстрее, чем функции в Java? ⇐ JAVA
Являются ли встроенные функции mongo быстрее, чем функции в Java?
Is it worth using MongoDB built-in functions to filter data? I think the functions in MongoDB are faster because the database is mostly written in C++ and is designed to be as performant as possible. Besides, to create POJO, the database has to parse it from JSON, on the other hand, mongo functions probably work on a low level with bson. For example, what is better in terms of performance and memory consumption: get the full array of items and slice it using Java, or get the sliced array using $slice from Mongo?
Источник: https://stackoverflow.com/questions/781 ... ns-in-java
Is it worth using MongoDB built-in functions to filter data? I think the functions in MongoDB are faster because the database is mostly written in C++ and is designed to be as performant as possible. Besides, to create POJO, the database has to parse it from JSON, on the other hand, mongo functions probably work on a low level with bson. For example, what is better in terms of performance and memory consumption: get the full array of items and slice it using Java, or get the sliced array using $slice from Mongo?
Источник: https://stackoverflow.com/questions/781 ... ns-in-java
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Получение более быстрых выводов тем быстрее, чем быстрее я вызываю функцию
Гость » » в форуме Python - 0 Ответы
- 140 Просмотры
-
Последнее сообщение Гость
-