1
0
forked from MTSR/mapserver

perf flags

This commit is contained in:
NatureFreshMilk 2019-01-23 15:07:52 +01:00
parent d420063182
commit 0a626bc127
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import (
const migrateScript = `
PRAGMA foreign_keys = ON;
PRAGMA journal_mode = MEMORY;
-- PRAGMA synchronous = OFF;
PRAGMA synchronous = OFF;
create table if not exists objects(
id integer primary key autoincrement,

View File

@ -68,7 +68,7 @@ func (db *Sqlite3Accessor) RemoveTile(pos *coords.TileCoords) error {
}
func NewSqliteAccessor(filename string) (*Sqlite3Accessor, error) {
db, err := sql.Open("sqlite3", filename)
db, err := sql.Open("sqlite3", filename + "?_timeout=500")
if err != nil {
return nil, err
}