diff -Npur mt-daapd-svn-1735/src/db-sql-sqlite3.c mt-daapd-svn-1735_tmpdir/src/db-sql-sqlite3.c --- mt-daapd-svn-1735/src/db-sql-sqlite3.c 2008-06-19 01:18:03.000000000 +0200 +++ mt-daapd-svn-1735_tmpdir/src/db-sql-sqlite3.c 2008-06-19 00:24:13.000000000 +0200 @@ -364,8 +364,11 @@ int db_sqlite3_event(int event_type) { switch(event_type) { case DB_SQL_EVENT_STARTUP: /* this is a startup with existing songs */ - if(!conf_get_int("database","quick_startup",0)) - db_sqlite3_exec(NULL,E_FATAL,"vacuum"); + if(!conf_get_int("database","quick_startup",0)) + { + db_sqlite3_exec(NULL,E_FATAL,"pragma temp_store_directory = '/ffp/tmp'"); + db_sqlite3_exec(NULL,E_FATAL,"vacuum"); + } db_sqlite3_exec(NULL,E_DBG,"create index idx_path on " "songs(path,idx)");