diff --git a/docs/standard/data/sqlite/async.md b/docs/standard/data/sqlite/async.md index 149865126fcee..2d2307bb65248 100644 --- a/docs/standard/data/sqlite/async.md +++ b/docs/standard/data/sqlite/async.md @@ -1,13 +1,13 @@ --- title: Async limitations -ms.date: 12/13/2019 +ms.date: 09/04/2020 description: Explains the limitations of the async APIs and some alternatives that you can use instead. --- # Async limitations SQLite doesn't support asynchronous I/O. Async ADO.NET methods will execute synchronously in Microsoft.Data.Sqlite. Avoid calling them. -Instead, use [write-ahead logging](https://www.sqlite.org/wal.html) to improve performance and concurrency. +Instead, use a [shared cache](connection-strings.md#cache) and [write-ahead logging](https://www.sqlite.org/wal.html) to improve performance and concurrency. [!code-csharp[](../../../../samples/snippets/standard/data/sqlite/AsyncSample/Program.cs?name=snippet_WAL)] diff --git a/docs/standard/data/sqlite/custom-versions.md b/docs/standard/data/sqlite/custom-versions.md index 9038c8ae86ce9..72eb9a88ab2a7 100644 --- a/docs/standard/data/sqlite/custom-versions.md +++ b/docs/standard/data/sqlite/custom-versions.md @@ -1,6 +1,6 @@ --- title: Custom SQLite versions -ms.date: 05/14/2020 +ms.date: 09/04/2020 description: Learn how to use a custom version of the native SQLite library. --- @@ -17,6 +17,7 @@ description: Learn how to use a custom version of the native SQLite library. | [SQLitePCLRaw.bundle_e_sqlite3](https://www.nuget.org/packages/SQLitePCLRaw.bundle_e_sqlite3) | Provides a consistent version of SQLite on all platforms. Includes the FTS4, FTS5, JSON1, and R*Tree extensions. This is the default. | | [SQLitePCLRaw.bundle_e_sqlcipher](https://www.nuget.org/packages/SQLitePCLRaw.bundle_e_sqlcipher) | Provides an unofficial, open-source build of `SQLCipher`. | | [SQLitePCLRaw.bundle_green](https://www.nuget.org/packages/SQLitePCLRaw.bundle_green) | Same as `bundle_e_sqlite3`, except on iOS where it uses the system SQLite library. | +| [SQLitePCLRaw.bundle_sqlite3](https://www.nuget.org/packages/SQLitePCLRaw.bundle_sqlite3) | Uses the system SQLite library. | | [SQLitePCLRaw.bundle_winsqlite3](https://www.nuget.org/packages/SQLitePCLRaw.bundle_winsqlite3) | Uses `winsqlite3.dll`, the system SQLite library on Windows 10. | | [SQLitePCLRaw.bundle_zetetic](https://www.nuget.org/packages/SQLitePCLRaw.bundle_zetetic) | Uses the official `SQLCipher` builds from Zetetic (not included). | diff --git a/samples/snippets/standard/data/sqlite/AsyncSample/Program.cs b/samples/snippets/standard/data/sqlite/AsyncSample/Program.cs index 679b3e836a457..bee55b5f238e6 100644 --- a/samples/snippets/standard/data/sqlite/AsyncSample/Program.cs +++ b/samples/snippets/standard/data/sqlite/AsyncSample/Program.cs @@ -16,7 +16,7 @@ static async Task Main() // Microsoft.Data.Sqlite. #region snippet_WAL - var connection = new SqliteConnection("Data Source=AsyncSample.db"); + var connection = new SqliteConnection("Data Source=AsyncSample.db;Cache=Shared"); connection.Open(); // Enable write-ahead logging