[core] Optimize offline database schema
* Under the hood, SQLite creates surrogate keys (ROWID) anyway. We may as well take advantage of this and use the surrogates for foreign keys as well, since they are simpler and more efficient than compound foreign keys. * Create indexes for efficient eviction queries
This commit is contained in:
@@ -12,7 +12,7 @@ using namespace std::literals::chrono_literals;
|
||||
int main(int, char * []) {
|
||||
using namespace mbgl;
|
||||
|
||||
util::deleteFile("offline.db");
|
||||
unlink("offline.db");
|
||||
|
||||
util::RunLoop loop;
|
||||
DefaultFileSource fileSource("offline.db", ".");
|
||||
|
||||
Reference in New Issue
Block a user