5 ms·
ActorDB can have multiple actor types, each with a completely different schema. I would create a new actor type for this purpose and have a single actor in it.
by biokoda 11y ago
ActorDB can have multiple actor types, each with a completely different schema.
I would create a new actor type for this purpose and have a single actor in it. This would just contain the names of users. It would be easy to query and manage.
Another option is to create a new KV type and have the names there. This is much more scalable bit a bit more difficult to query. Needed if you really need many thousands of queries per second.
On the other hand if your scale is such that search by name is a big load, it is probably better to complement the DB with elasticsearch and move text search to it. This is how the big boys do it.
- continuational 11y agoThat makes sense. Thank you for the explanation.