Skip to content

Stop handling SQLite too many variables error #12032

@ErisDS

Description

@ErisDS

Problem

People using SQLite3 in production sometimes fall foul of SQLite's 999 variable limit. We've been thinking about how to refactor to cope with this, and we have a few bits and pieces in the codebase, but actually SQLite fixed it in their 3.32 version: https://www.sqlite.org/releaselog/3_32_0.html

Hopefully Node's SQLite project will come bundled with 3.32 by default soon as it's already in master.

Appetite: 0.5 day

Solution:

  1. We should remove all workarounds that we have for this in the codebase, they are code we don't need to maintain anymore.
    E.g. 08f54d2
    E.g. c701293
    E.g. a29ac26
  2. We should maybe look at adding an error handler that catches the error and converts it to a nicely formatted Ghost error telling people to upgrade to SQLite 3.32 - but only if this can be done quickly and easily in one place.

SQLITE_ERROR: too many SQL variables

  1. Maybe mention this as a minimum requirement in our docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects:serverIssues relating to the server or core of Ghost

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions