From 52f831936e5b4b7435510244829d490bd30e0124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 28 Nov 2020 13:26:21 +0100 Subject: [PATCH] Document the including(all:) caveat with compound foreign keys --- Documentation/AssociationsBasics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/AssociationsBasics.md b/Documentation/AssociationsBasics.md index 31a6a67d6..74cbe8ddc 100644 --- a/Documentation/AssociationsBasics.md +++ b/Documentation/AssociationsBasics.md @@ -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.