Skip to content

Conversation

abhijeetviswa
Copy link
Contributor

This PR is no where close to being finished. There even might be some naive coding decisions I've made. I've tested it on Windows and on Linux, both running Postgres.

This patch doesn't support spawn with SQLite since the database is in-memory. There are two workarounds I can think of:

  1. Don't allow in-memory databases, parallel, and spawn together.
  2. SQL Dump the in-memory database and then re-create the database in the child processes.

The problem with the second one is, afaik, there isn't a way to dump an SQLite DB with the ORM. However, the sqlite3 module provides a method for it (Connection.iterdump()). I wasn't sure how to tackle that, hence left it out of the patch.

Please test out this patch on your primary OS and database.

@abhijeetviswa
Copy link
Contributor Author

Closing this since @Valze is doing this as his Gsoc project. All the best man.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant