forked from MTSR/mapserver
perf flags
This commit is contained in:
parent
d420063182
commit
0a626bc127
@ -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,
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user