sfan5
7ff2288627
Optimize database access further by allowing "brute-force" queries instead of listing available blocks
...
Also adds a heuristic that will enable this behaviour automatically.
2020-03-27 23:38:18 +01:00
sfan5
5b264fd443
Rewrite DB class to allow backends to fully optimize block fetches
2020-03-27 20:30:13 +01:00
Christophe Le Roy
bcbfd00eba
DBSQLite3: Do not raise in destructor
...
Throwing exception from destructor is not recommended and generates lots
of warnings during compilation.
Don't use macro SQLRES, and:
- ignore return code of sqlite3_finalize (of no interest here)
- log to stderr sqlite3_close failure
2016-10-08 22:02:36 +02:00
sfan5
4db3040f2a
Fix getting MapBlocks for abs(z) > 2048 with sqlite3 backend ( fixed #31 )
2016-09-18 14:33:13 +02:00
ShadowNinja
22d3e401f8
Don't use a temporary table for block positions
...
This also moves database functions and data structures to db.h
2014-04-19 02:13:34 -04:00
ShadowNinja
5905c34ec0
Significantly optimize LevelDB database backend
2014-03-28 17:38:56 -04:00
ShadowNinja
6e565e93d1
Prepare statements at startup and finalize them
2014-03-28 13:42:37 -04:00
Sfan5
46023f77f5
Make it (almost) compile for windows
2014-03-09 12:32:13 +01:00
Sfan5
c497397111
Catch SQLITE_BUSY and try again
2014-03-05 21:46:40 +01:00
Sfan5
393d7e2ac0
LevelDB support
2014-03-05 21:42:21 +01:00