0
Files
src/sql/sql_features.cc
Etienne Bergeron b3fd806db7 Implement experimental database pre-open preloading
This change implements an experiment to preload the database prior to
opening any file handles. This resolves a conflict with Windows
exclusive file mode, which was being blocked by base::PreRead's separate
handle used for preloading.

All Databases for which the owner calls Database::Preload() are included
in the study.

This CL implements an experimental feature to preload the database
before any handles are opened.

Bug: 40904059
Change-Id: Ice9dcf730f71f5e4a6af6fd2290b9588a7e0a03a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6269958
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Austin Sullivan <asully@chromium.org>
Reviewed-by: Chris Fredrickson <cfredric@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Reviewed-by: Mikel Astiz <mastiz@chromium.org>
Reviewed-by: Greg Thompson <grt@chromium.org>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1422031}
2025-02-19 09:41:16 -08:00

22 lines
608 B
C++

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sql/sql_features.h"
#include "base/feature_list.h"
namespace sql::features {
// Enable WAL mode for all SQLite databases.
BASE_FEATURE(kEnableWALModeByDefault,
"EnableWALModeByDefault",
base::FEATURE_DISABLED_BY_DEFAULT);
// Preload database before opening the file.
BASE_FEATURE(kPreOpenPreloadDatabase,
"PreOpenPreloadDatabase",
base::FEATURE_DISABLED_BY_DEFAULT);
} // namespace sql::features