Index: b/create/data/data.sql
===================================================================
--- a/create/data/data.sql	2011-12-19 22:25:58.867352213 +0100
+++ b/create/data/data.sql	2011-12-19 22:26:01.059343006 +0100
@@ -17,6 +17,12 @@
 -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 --
 
+-- Start a transaction to avoid heavy fsync()'ing when using SQLite3.
+-- Also reported upstream: https://support.zabbix.com/browse/ZBX-4024
+-- Without the transaction the database setup can take over one hour
+-- while in a transaction it is just a matter of seconds.
+BEGIN;
+
 --
 -- Dumping data for table `config`
 --
@@ -12301,3 +12307,7 @@
 --
 
 INSERT INTO sysmaps_elements VALUES (2,2,10017,0,19,0,0,'Zabbix server',NULL,100,100,'',0,0);
+
+-- Finish the transaction.
+COMMIT;
+
