Document the including(all:) caveat with compound foreign keys

This commit is contained in:
Gwendal Roué committed 2020-11-28 13:26:21 +01:00
1 parent 28f6b64f67
commit 52f831936e
1 file changed
+2 -2
+2 -2
View File
@@ -2392,9 +2392,9 @@ See [Good Practices for Designing Record Types] for more information.
.including(required: Passport.citizen))
```
- **The `including(all:)` method may fail with a database error of code [`SQLITE_ERROR`](https://www.sqlite.org/rescode.html#error) (1) "Expression tree is too large" when you use a compound foreign key and there are a lot of parent records.
- **The `including(all:)` method may fail with a database error of code [`SQLITE_ERROR`](https://www.sqlite.org/rescode.html#error) (1) "Expression tree is too large" when you use a compound foreign key and there are a lot of parent records.**
See [Joining And Prefetching Associated Records] for more information.
See [Joining And Prefetching Associated Records] for more information about this error.
Come [discuss](http://twitter.com/groue) for more information, or if you wish to help turning those missing features into reality.