kuzu
kuzu copied to clipboard
Cannot open readOnly and readWrite connection on the same database directory
Adding question from Discord for context:
Is there a way to share the same Kuzu database among multiple processes. At the moment this seems to be impossible: if I connect to a Kuzu DB from the CLI and then run a Python script that connects to the same DB I get an error
RuntimeError: Could not set lock on file : kuzu/.lock
I currently have the Kuzu CLI open on the database (so I guess that will have write permission), and I just changed my python code to
kuzu_db = kuzu.Database(database_path=kuzu_db_path, buffer_pool_size=1024 ** 3, read_only=True)
I still get the error RuntimeError: Could not set lock on file : kuzu/.lock