summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-02-10 15:15:05 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-10 15:40:20 -0800
commit40ecdeb0b60a7dfd15339ce9e0e851ce209b5da1 (patch)
tree5a9ac032ab2fe4361e497a04591cea7cb120254c /bin
parent0cf450e3e529423737c6b4aa196b271442530345 (diff)
downloadqtlocation-mapboxgl-40ecdeb0b60a7dfd15339ce9e0e851ce209b5da1.tar.gz
[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
Diffstat (limited to 'bin')
-rw-r--r--bin/offline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/offline.cpp b/bin/offline.cpp
index 79a091a534..a0adb6c2aa 100644
--- a/bin/offline.cpp
+++ b/bin/offline.cpp
@@ -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", ".");