Trouble shooting sql_time_limit_ms #1731
Unanswered
abekenmore
asked this question in
Q&A
Replies: 1 comment
-
|
What page are you getting this timeout on? It sounds like you might be getting hung up on the initial home page, not a user query, which can take a really long time to load with huge DBs. Maybe try using an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all! I set up my first Datasette database, got everything up and running but the data is large (millions of rows). The SQL inquiries timeout after one second, which isn't enough time to process the data. I tried to lengthen the query time limit by running this command in my Mac's terminal:
datasette mydatabase.db --setting sql_time_limit_ms 5000The only thing I subbed from the example code was my database name and the time limit. It started running, and I got this:
I shut it down using CTRL+C after 15 hours of it running without resolving (at ^CINFO), the database still has a 1 second query limit. I tried running the code a few times previously as well. Never got any error codes, but it never resolved either. Apologies if this is the wrong forum, but I'm new to Datasette (and Python - everything I've learned has been to set up this database), so any advice on why the command isn't running would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions