1
0
forked from MTSR/mapserver

perf tweak

This commit is contained in:
Thomas Rudin 2019-02-08 17:58:48 +01:00
parent eb70645a70
commit 73beb8c2b3
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,8 @@ package sqlite
const migrateScript = `
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = TRUNCATE;
PRAGMA journal_mode = MEMORY;
PRAGMA synchronous = OFF; --TODO: this is just ridiculously slow otherwise...
create table if not exists objects(
id integer primary key autoincrement,

View File

@ -20,6 +20,7 @@ var AbstractIconOverlay = L.LayerGroup.extend({
onMapObjectUpdated: function(obj){
var hash = this.hashPos(obj.x, obj.y, obj.z);
var marker = this.currentObjects[hash];
console.log(this.type, obj);//XXX
if (marker) {
//marker exists