Bug 1071513 - Enable async PlacesTransactions for nightly builds. r=mak
authorMark Banner <standard8@mozilla.com>
Thu, 13 Jul 2017 12:16:18 +0100
changeset 611705 0a4690dfd7b383e2f732210cf8906ce51a5b2433
parent 611704 0da00124af43d44fed96133300ba5e32b0d821a8
child 611706 d11cd5c3fc6f5e1ec439e6d15e3f911f3e967e3c
push id69287
push userCallek@gmail.com
push dateThu, 20 Jul 2017 01:11:37 +0000
reviewersmak
bugs1071513
milestone56.0a1
Bug 1071513 - Enable async PlacesTransactions for nightly builds. r=mak MozReview-Commit-ID: 1QJnamp6iFo
browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -909,16 +909,24 @@ pref("browser.sessionstore.debug.no_auto
 // Forget closed windows/tabs after two weeks
 pref("browser.sessionstore.cleanup.forget_closed_after", 1209600000);
 // Maximum number of bytes of DOMSessionStorage data we collect per origin.
 pref("browser.sessionstore.dom_storage_limit", 2048);
 
 // allow META refresh by default
 pref("accessibility.blockautorefresh", false);
 
+// Whether useAsyncTransactions is enabled or not.
+// Currently we only enable them for nightly.
+#ifdef NIGHTLY_BUILD
+pref("browser.places.useAsyncTransactions", true);
+#else
+pref("browser.places.useAsyncTransactions", false);
+#endif
+
 // Whether history is enabled or not.
 pref("places.history.enabled", true);
 
 // the (maximum) number of the recent visits to sample
 // when calculating frecency
 pref("places.frecency.numVisits", 10);
 
 // buckets (in days) for frecency calculation