Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Significant update performance update playing with page_size and cache_size
Baptiste Daroussin committed 11 years ago
commit 66330a6d2f48aef1eea09e28e8b0b4e3ce33c790
parent a051937
1 file changed +6 -0
modified libpkg/repo/binary/update.c
@@ -518,6 +518,12 @@ pkg_repo_binary_update_proceed(const char *name, struct pkg_repo *repo,

	pkg_emit_progress_start("Processing entries");

+
	/*sql_exec(sqlite, "PRAGMA synchronous = OFF;");
+
	sql_exec(sqlite, "PRAGMA journal_mode = DELETE;");
+
	sql_exec(sqlite, "PRAGMA temp_store = MEMORY;");*/
+
	sql_exec(sqlite, "PRAGMA page_size = 4096;");
+
	sql_exec(sqlite, "PRAGMA cache_size = 10000;");
+

	rc = pkgdb_transaction_begin(sqlite, "REPO");
	if (rc != EPKG_OK)
		goto cleanup;