-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use a separate schema for aggregate tables #96
Comments
All shards (including coord shards) have to have the schema loaded, even just empty tables will work. I'll think about support for coord shards without schema though. |
OK, so can I force SQ to use the "temp" schema for aggregate tables? My use case is simple: just one server, two schemas - "archive" with data and "temp" is empty. Can I define a single shard to use that two schemas? I'm sorry, but the config is a little bit confusing for me :) Thank you, Vojtech |
No, that isn't supported right now. The coordinator shard has to have the schema of the other shard. I can add code to use a different shard than the coordinator shard for metadata, but that will take some time. |
OK, I get it, thanks |
The underlying reasons are: |
I think all these operations can be done in a cross-schema fashion: I have the schemas on the same mysqld instance, I just need to keep all the temporary tables in the 'temporary' schema to keep my production schema clean and to setup the replication filters easily. I don't want the "aggregate...." tables to be replicated, it doesn't make any sense to me. It's just a feature request :) |
I have a schema called "archive" (shard1), where are the large tables I want to query.
I don't want to create any temporary tables in this schema (because it's replicated), but want to use another schema called "temp", which is excluded from replication.
I've set this in bootstrap:
But I get an error:
At line:
https://github.com/greenlion/swanhart-tools/blob/master/shard-query/include/shard-query.php#L288
Am I doing anything wrong? I have tried find it in the docs, but there don't seem to be any for that situation.
The text was updated successfully, but these errors were encountered: