0
Files
src/sql/sql_features.h
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

23 lines
670 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.
#ifndef SQL_SQL_FEATURES_H_
#define SQL_SQL_FEATURES_H_
#include "base/component_export.h"
#include "base/feature_list.h"
namespace sql::features {
// All features in alphabetical order, grouped by buildflag. The features should
// be documented alongside the definition of their values in the .cc file.
// Alphabetical:
COMPONENT_EXPORT(SQL) BASE_DECLARE_FEATURE(kEnableWALModeByDefault);
COMPONENT_EXPORT(SQL) BASE_DECLARE_FEATURE(kPreOpenPreloadDatabase);
} // namespace sql::features
#endif // SQL_SQL_FEATURES_H_