From ac0e0ff94d91d2086fa89f857bac55829b894ff5 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Wed, 23 Jan 2019 08:23:33 +0100 Subject: [PATCH] object db indexes --- mapobjectdb/sqlite_migrate.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mapobjectdb/sqlite_migrate.go b/mapobjectdb/sqlite_migrate.go index 71a2c83..46c80d5 100644 --- a/mapobjectdb/sqlite_migrate.go +++ b/mapobjectdb/sqlite_migrate.go @@ -21,6 +21,9 @@ create table if not exists objects( mtime bigint ); +create index if not exists objects_pos on objects(posx,posy,posz); +create index if not exists objects_pos_type on objects(posx,posy,posz,type); + create table if not exists tiles( data blob, mtime bigint,