I'm not really an index guy, but could you try switching to ```CREATE INDEX if not exists scheduled_
I'm not really an index guy, but could you try switching to
CREATE INDEX if not exists scheduled_jobs_search ON Jobs (status,
scheduled_at);D1_ERROR: D1 is overloaded. Requests queued for too long


Accounts is the main table with foreign key in all other tables, so when a customer delete an account it freeze everything. Any suggestions?
EXPLAIN QUERY PLAN on all tablesPRAGMA index_list('TableName'); and when I did a simple query on the table with EXPLAIN QUERY PLAN select * from TableName where UserId = 'abc' it reported use of SCAN (full table scan). So I think that confirms to me that the FK indexes are not created automatically. Thank you for highlighting this, as I'll need to revisit the schema's for my SQLite apps.
D1_ERROR: D1 is overloaded. Requests queued for too longDelete from Accounts where account_id = ?AccountsEXPLAIN QUERY PLANPRAGMA index_list('TableName');EXPLAIN QUERY PLAN select * from TableName where UserId = 'abc'