-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Phase 2][Post GA][YSQL] Allow changing the colocated table/database option after creation #4463
Comments
Duplicate of #4396 |
Me too had this problem, Initially I created database without colocated flag and thus it is by default false and my use case is that I have created database and imported 2-3 GB data in ysql, which resulted into increasing load on the database server. Then I tried altering the database and tables to set colocated =true, but it did not supported. Also, if the architecture of yugabyte supports multiple tablets for large tables then it must be optimised to handle such cases. |
This feature would be important for an application I have attempted to proof-of-concept using with Yugabyte. In my case, I would start with one database with colocation = 'true', create a number of schemas, and then colocate the subset of schemas that acquired enough data to merit that. Less common, but probably needed, would be the ability to pull a table out of a colocated database or schema. I would never need or want to un-colocate a schema or database once it was colocated, although some tables in them will need that obviously as requested in #4396 |
Jira Link: [DB-369](https://yugabyte.atlassian.net/browse/DB-369)
At this time it is only possible to change the colocation option during database creation or during table creation in a already colocated database.
It would be very useful to be able to alter this on an already existing database or table as databases and data sets evolve over time.
Example how I imagine this could be changed by a user:
The text was updated successfully, but these errors were encountered: