]> err.no Git - mapper/commitdiff
Use way_name id as primary key. Set page size pragma to hopefully speed up things...
authorKaj-Michael Lang <milang@angel.tal.org>
Mon, 30 Jul 2007 10:56:29 +0000 (13:56 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Mon, 30 Jul 2007 10:56:29 +0000 (13:56 +0300)
docs/osm-tables.sql

index fe8e133592b8c2fcaf5803fbf87d8c8ab2d40f75..57e4b571d621633563ed9aaaf403f79ec47f7b72 100644 (file)
@@ -1,3 +1,6 @@
+PRAGMA page_size=4096;
+PRAGMA encoding = "UTF-8"; 
+
 create table nodes (
        nid     int primary key,
        lat     int not null,
@@ -28,7 +31,7 @@ create table area (
 );
 
 create table way_names (
-       wid             int not null,
+       wid             int primary key,
        name    varchar(256)
 );