-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Dashboard position_json truncates if dashboard gets too large #5532
Comments
In mysql,
Though while you could just go ALTER TABLE and call it a day in your env, we should find a way for SQLAlchemy to work regardless of the engine used. Maybe some conditions around which engine is used in a db migration script, and point to http://docs.sqlalchemy.org/en/latest/dialects/mysql.html#sqlalchemy.dialects.mysql.MEDIUMTEXT |
@mistercrunch what do you think of using |
Problema ainda continua, o que pode ser feito para driblar isso ? |
If a v2 dashboard gets too large, the position_json data will get truncated because the text field in mysql only allows up to 65kb of data. This will cause an internal server error as the position_json is invalid, and the data truncated will likely be unrecoverable unless you make frequent backups. More metadata is being stored in position_json in v2 (nested tabs, rows, columns), causing this issue.
Solutions
Simple changes to do soon:
Options to consider doing:
Option 4 is an easy change that can reduce the size from 65kb to ~45kb, so we should do this soon. I think we also want to do option 2 to reduce space. We still need to look into whether option 3 is viable.
Steps to reproduce
Create a dashboard where the position_json is larger than 65kb.
Load the dashboard and see internal server error because of invalid json
@graceguo-supercat @mistercrunch @john-bodley
The text was updated successfully, but these errors were encountered: