From my search I found the suggestion to edit DB_URI in settings.py like this ...
DB_URI = "sqlite://storage.db?journal_mode=WAL"
... but it generated an error.
What's the right way to do it?
Thanks
Kim
Massimo
unread,
Mar 23, 2025, 9:13:13 PM3/23/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to py4web
Hello Kim,
that syntax does not work with pydal but you can use explicit SQL commands to pydal. So immediately after you defined db = DAL(...) in common.py you can do:
db.executesql("pragma journal_mode=wal")
I did not test that it works. I just tested it does not break. :-)
Perhaps you can check it and confirm if this works as expected for you.