Restream / reindexer

Embeddable, in-memory, document-oriented database with a high-level Query builder interface.
https://reindexer.io
Apache License 2.0
763 stars 64 forks source link

Query across multiple namespaces #79

Closed zzl221000 closed 1 year ago

zzl221000 commented 1 year ago

Same indexes , but the data has to be separated, and sometimes it needs to be queried together.

Could not find how to query multiple namespaces simultaneously

graveart commented 1 year ago

Hi! I think the only way is to use sharding config with two separated DB's with different names. hosted by the same reindexer_server instance. In this case you will be able to use distributed requests over those DBs (however, distributed queries have some constraints and reindexer will still use TCP-proxying between those DBs, even if both of them are hosted locally).

For fulltext queries it's also possible to use merge

zzl221000 commented 1 year ago

Thank you very much for the program. After evaluating, we finally gave up on using reindexer, our program needs more of an infinite loop iterator than a normal database. @graveart