Re:Rqlite: Replicated SQLite using the Raft consensus protocol
by biokoda on Monday February 29, 2016 @02:04PM
(#11197392)
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.
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.