I have a list view of an SQLite database table which a have setup to refresh every 20sec or so. The table has dynamic data which is populated by another process running simultaneously on the same computer and has several tabs that allow a filtered subset of the records - these tabs are configured to show the number of records on the tabs.
Every so often the PHPRunner code will encounter an error caused by the database being locked (contention of this type is expected) but I would prefer the PHPRunner code to ignore the error and continue regular refresh of the page rather than stop with the PHP error message.
I have tried the following line in BeforeProcessList event:
.. however I still get the error - it appears to be from the code that is populating the number of items on the tabs.
Any suggestions as to how I can avoid the error message? I have read a little bit about different modes of connection to the SQLite database which is better for concurrent access (WAL mode - see https://charlesleifer.com/blog/going-fast-with-sqlite-and-python/) - I haven't tried it - not sure whether the PHPRunner interface would work with this or not.
Every so often the PHPRunner code will encounter an error caused by the database being locked (contention of this type is expected) but I would prefer the PHPRunner code to ignore the error and continue regular refresh of the page rather than stop with the PHP error message.
I have tried the following line in BeforeProcessList event:
DB::CurrentConnection()->setSilentMode(true);
.. however I still get the error - it appears to be from the code that is populating the number of items on the tabs.
Any suggestions as to how I can avoid the error message? I have read a little bit about different modes of connection to the SQLite database which is better for concurrent access (WAL mode - see https://charlesleifer.com/blog/going-fast-with-sqlite-and-python/) - I haven't tried it - not sure whether the PHPRunner interface would work with this or not.