Bug 1071513 - Enable async PlacesTransactions for nightly builds. r?mak draft
authorMark Banner <standard8@mozilla.com>
Thu, 13 Jul 2017 12:16:18 +0100
changeset 608273 23ddf1992fe6144b6b4c870b657e2944b77c7cd1
parent 607967 30ea2905130e85f9e1d8d56fa3097901eec6514b
child 637257 bad781eea3ffc4e55b61da14ae54775d584babe0
push id68225
push userbmo:standard8@mozilla.com
push dateThu, 13 Jul 2017 11:16:42 +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