169 похожих чатов

I have an application using MongoDB for it. To speedup

queries I decided to use a cache layer like Redis. So on all add, update, remove query, we made changed on both (MongoDB and Redis) then on READ queries, we just read from redis. Also there is redis module which called Redisearch.

The problem is Redisearch is so complicated to worth with. There is no "remove record" query.
My questions are:
1- is there any CURD API (with sql or mql query language and example documentation) which can be connected to Redisearch engine and our app just work with it?
2- What about other options such as Elasticsearch? Is it better and easier but fast enough option to be cache for MongoDB?

5 ответов

5 просмотров

elastic is a full fledged database that happens to also provide search results, and no i don't think there is an sql wrapper for redisearch. you could look at some libraries

Amir Salar-Pourhasan 🌱 Автор вопроса
A​kshit
elastic is a full fledged database that happens to...

but redis is much faster than elastic. what do you think. You think if I use elastic for read queries for my mongo, it would be very faster or just a list speed up? I dont have sense about it.

Amir Salar Pourhasan 🌱
but redis is much faster than elastic. what do you...

i have no idea about your data model and such, but all i can say is redis (not redisearch) is surely faster than elastic for pure reads. you would have to research for your usecase

Amir Salar-Pourhasan 🌱 Автор вопроса
A​kshit
i have no idea about your data model and such, but...

yes its very faster. the problem is complex queries.

Похожие вопросы

Обсуждают сегодня

Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
48
А чем вам питонисты не угодили?😂
.
79
type TObj = object procedure Init; virtual; end; TObj1 = object(TObj) procedure Init; override; end; procedure TObj1.Init; begin inherited; end; procedur...
Alexander 👋
29
Такой вопросец - есть функция function MySuperDuperConcat(const a: array of AnsiString): AnsiString; Как мне в её теле сделать вот так? Result:=Concat(a); А не грустный вариан...
notme
15
Всем привет. Поделитесь, пожалуйста, опытом. Есть форма, на которой имеется dbgrid и кнопки: добавить, редактировать, удалить. Если нет записей в dbgrid, то кнопки редактирова...
Евгений
5
type TExtensions<GExtender>=class function GetExtension<GEntityExtenderType>:GEntityExtenderType; end; function TExtensions<GExtender>.GetExtension<GEntityExtenderType...
zamtmn
8
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
86
Всем привет, препод задал вопрос, подскажите пожалуйста, какой адрес инкапсулирует указатель?
Свинка Пеппа
8
Почему никто ещё не написал квантовую виртуальную машину на Windows?
КТ315
7
Вот смотрите у меня есть два стрима сейчас fs, cs: TStream; fs := TFileStream.Create('filename'); cs := TCompressionStream.Create(compression_level, fs); Я хочу сделать так: ...
notme
5
Карта сайта