File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,8 @@ let newPlaceCount = try dbQueue.write { db -> Int in
491
491
}
492
492
```
493
493
494
+ See the [ Concurrency] guide for asynchronous database accesses.
495
+
494
496
** A database queue serializes accesses to the database** , which means that there is never more than one thread that uses the database.
495
497
496
498
- When you don't need to modify the database, prefer the ` read ` method. It prevents any modification to the database.
@@ -548,6 +550,8 @@ let newPlaceCount = try dbPool.write { db -> Int in
548
550
}
549
551
```
550
552
553
+ See the [ Concurrency] guide for asynchronous database accesses.
554
+
551
555
** Database pools allow several threads to access the database at the same time:**
552
556
553
557
- When you don't need to modify the database, prefer the ` read ` method, because several threads can perform reads in parallel.
You can’t perform that action at this time.
0 commit comments