manticoresearch icon indicating copy to clipboard operation
manticoresearch copied to clipboard

Support databases inside ManticoreSearch

Open AbstractiveNord opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Mostly new users of ManticoreSearch have problems with CRUD operations about databases. It's unexpected to have CREATE (and others) DATABASES query to work good, but doing nothing. No way to separate different namespaces of tables.

Describe the solution you'd like Implement CRUD operations for DATABASE and remove stub queries.

Additional context Stub queries was made as bypass for some clients applications, database IDEs.

AbstractiveNord avatar Oct 12 '23 05:10 AbstractiveNord

Things to think through and notes after call with Alexey:

  • default database
mysql> show tables;
ERROR 1046 (3D000): No database selected
  • dist of locals:
create table dist type='distributed' local='db.tbl' local='db2.tbl2'
  • database name is not a part of the protocol, e.g. when you run status on the client it doesn't take the database name from the protocol, it does select database() etc.

  • the way to migrate to the db ON mode.

  • how this should work together with replication clusters

sanikolaev avatar Oct 23 '23 04:10 sanikolaev

Alexey suggests to add a new setting like databases_dir in addition to data_dir.

sanikolaev avatar Oct 30 '23 04:10 sanikolaev