Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis

This commit is contained in:
Gwendal Roué committed 2016-08-01 19:02:42 +02:00
commit 5a26ee2ca9
1 file changed
+2 -2
+2 -2
View File
@@ -3510,10 +3510,10 @@ if person.hasPersistentChangedValues {
Consider a simple use case: your store application has to display a list of authors with the number of available books:
- Jonathan Coe (6)
- J. M. Coetzee (6)
- Herman Melville (1)
- Alice Munro (3)
- Kim Stanly Robinson (7)
- Kim Stanley Robinson (7)
- Oliver Sacks (4)
The following code is inefficient. It is an example of the [N+1 problem](http://stackoverflow.com/questions/97197/what-is-the-n1-selects-issue), because it performs one query to load the authors, and then N queries, as many as there are authors. This turns very inefficient as the number of authors grows: