mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Documentation
This commit is contained in:
1 parent
71d4565aa5
commit
b52687f356
1 file changed
+1
-1
@@ -4164,7 +4164,7 @@ class PersonObserver: TransactionObserver {
|
||||
}
|
||||
```
|
||||
|
||||
The `databaseDidChange` method is invoked for each insertion, deletion, and update of individual rows. When there are many changed rows, the observer will spend of a lot of time performing the same check again and again.
|
||||
The `databaseDidChange` method is invoked for each insertion, deletion, and update of individual rows, of any table. When there are many changed rows, the observer will spend of a lot of time performing the same check again and again.
|
||||
|
||||
Instead, filter events in the `observes(eventsOfKind:)` method. This will prevent `databaseDidChange` from being called for changes you're not interested into, and is *much more* efficient:
|
||||
|
||||
|
||||
Reference in new issue
Block a user