forked from MTSR/mapserver
perf tweak
This commit is contained in:
parent
eb70645a70
commit
73beb8c2b3
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user