Fork me on GitHub
#xtdb
<
2020-06-21
>
Ivan Fedorov16:06:45

Hey folks! Is there a way to have different indices in Crux like in Redis? Apart from different nodes.

refset16:06:34

What kind of use-case are you thinking of? Do you mean something that could be accessible through Datalog? And hey 😎

bmo 3
Ivan Fedorov16:06:57

I’m thinking about getting a separate crux node for a different domain inside the same app. I have one node already for “cucumbers” and this one will be for “car parts”, so no overlap between them. I want separate “indices” or nodes for hygiene.

refset16:06:19

Separate nodes using separate tx-logs in a single app is a reasonable approach. There is no shared cache or thread pooling between nodes currently though, so efficiency could be improved if you have a lot of nodes. We want to work on this area soon. We have also discussed having a node config "filter" to only index documents in the desired namespaces, but then I would question the value of funnelling everything into a single tx-log anyway. There are no concrete plans for adding something like that for now.

bmo 3
Ivan Fedorov16:06:12

cool ! I’ll go with a second node then, thanks!

🙏 3
Ivan Fedorov16:06:43

Wait, so you’ve released BETA without at least an 11 gun salute?

😉 3
🙊 3
Ivan Fedorov16:06:16

Are you freezing the API already, or can’t promise yet? Or at least maybe you can transition into accretion-only mode?

refset20:06:46

We're not freezing the API but it should generally be more stable. Accretion-only of the overall API is the long term goal. I can't promise that we're there quite yet. As for beta, GA is a much more exciting and useful target, which is why we opted for the low-key transition. We are fortunate enough to not be short of a good number of early adopters :)

👍 3
🙂 3
Ivan Fedorov06:06:24

Got you, thanks!