- Thread starter
- #121
Finally I tested the shared cache mode of SQLite. It didn't have any positive or negative influence on the ReadTests. But this was more or less expected since my tests only use one connection from the pool (there is no parallel access to the database when you only use one client). But I would expect this to improve the database performance when you use multiple MP2 clients because in that case we may have multiple connections reading at the same time and then all connections share a common cache, i.e. when one client has read some media items, the second client (using another connection) would use the data already in the cache from the first client. Besides that, I also expect this to improve using a client while an import is running. So for now, since it has neither positive nor negative influence on my set of tests, I will continue to use shared cache mode.
What we now could test is changing the page size (currently 4KB). I only tested the influence of the page size for the ImportTest so far and there was no real difference with 4KB, 8KB or 16KB. But maybe this affects the ReatTests. The only downside is that this is a "breaking change" compared to v0.07 so people would have to reimport their shares. But anyway, I will test it....
Edit: It's not really a "breaking change". PageSize=16KB will run with a database file generated with PageSize=4KB without problems - but the database will keep it's page size of 4KB. So if there should be a performance improvement and we decide to use PageSize=16KB it will still work with old databases, but the performance gain is only there if you do a reimport - so that should be acceptable in any case...
What we now could test is changing the page size (currently 4KB). I only tested the influence of the page size for the ImportTest so far and there was no real difference with 4KB, 8KB or 16KB. But maybe this affects the ReatTests. The only downside is that this is a "breaking change" compared to v0.07 so people would have to reimport their shares. But anyway, I will test it....
Edit: It's not really a "breaking change". PageSize=16KB will run with a database file generated with PageSize=4KB without problems - but the database will keep it's page size of 4KB. So if there should be a performance improvement and we decide to use PageSize=16KB it will still work with old databases, but the performance gain is only there if you do a reimport - so that should be acceptable in any case...
Last edited: