Skip to content

Busy timeout expires too soon #3144

@penberg

Description

@penberg

The perf/throughput/turso tool uses the same 30 second busy timeout as rusqlite variant. However, the Turso one returns "database busy" after 14 seconds:

     Running `/home/penberg/src/tursodatabase/turso/target/release/write-throughput -t 5 -b 1000 -i 1000 --mode legacy`
Running write throughput benchmark with 5 threads, 1000 batch size, 1000 iterations, mode: Legacy
Database created at: write_throughput_test.db
Thread 0: 1000000 inserts in 11.36s (88010.22 inserts/sec)
Thread 2: 1000000 inserts in 12.84s (77880.96 inserts/sec)
Thread 1: 1000000 inserts in 13.66s (73217.67 inserts/sec)
Thread 3: 1000000 inserts in 14.03s (71278.86 inserts/sec)
Thread error 4: SQL execution failure: `Database is busy`
Error: SqlExecutionFailure("Database is busy")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions