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
SQLITE_ERROR: too many SQL variables (Upgrade 2.35.0 to 3.0.0) #11263
Comments
Same issue with the same versions except for OS: MacOS 10.15 Catalina and previous Ghost version is 2.30.2. |
The issue here is with hitting SQLite's internal SQLITE_LIMIT_VARIABLE_NUMBER limit when updating with large amount of posts having Think a possible solution would be rewriting the 05-populate-posts-meta-table.js migration to use iterative method and update posts in small batches so the most standard limit of 999 params is never hit 🤔 Related issue: #5810 |
closes TryGhost#11263 - The issue here is with hitting SQLite's internal SQLITE_LIMIT_VARIABLE_NUMBER limit when updating with large amount of posts having metadata fields set (ref.: https://sqlite.org/limits.html#max_variable_number) - Transforming migration to iterative method avoided inserting lots of records at once
closes #11263 - Fixed `3.0/05-populate-posts-meta-table.js` migration failure when having >999 posts with metadata in the database - The issue here is with hitting SQLite's internal SQLITE_LIMIT_VARIABLE_NUMBER limit when updating with a large amount of posts having metadata fields set (ref.: https://sqlite.org/limits.html#max_variable_number) - Transforming migration to iterative method avoided inserting lots of records at once
Hi there,
Issue Summary
When I tried to upgrade my Ghost from 2.35.0 to 3.0.0, the process crashes in loop with when the database is being migrated:
SQLITE_ERROR: too many variables
/Error occurred while executing the following migration: 05-populate-posts-meta-table.js
Technical details:
Thank you!
The text was updated successfully, but these errors were encountered: