I am writing unit tests and use SQLite3 with his inmemory mode.
I am doing this because i need is a fresh database for each test so i can run tests in parallel without affecting each other.
But this gets, off course, slower and slower the more tests i have.
Are there any optimisations i can do with sqlite3, another better workflow (e.g. a good mocking library) or another solution do this problem? I need to run raw queries.
Currently i use knexjs but this is related to allmost every data access library.