Created
October 5, 2021 16:20
-
-
Save good-idea/46d01e3d657aa3de4cc004be61bd73c5 to your computer and use it in GitHub Desktop.
swell-sanity-homepage-query-explain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
└── Evaluate expr: ([0]) | |
│ legacyArraySemantics: true | |
└── Map expr: ({ | |
│ ..., | |
│ \"body\": body[].<LegacyScope expr={ | |
│ ..., | |
│ \"asset\": asset._ref.<LegacySingleKeyJoin source=___refJoin_2 keyExpr=_id>.<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"extension\": extension, | |
│ \"metadata\": metadata.<LegacyScope expr={ | |
│ \"dimensions\": dimensions | |
│ }>, | |
│ \"mimeType\": mimeType, | |
│ \"path\": path, | |
│ \"url\": url | |
│ }>, | |
│ \"links\": links[].<LegacyScope expr={ | |
│ ..., | |
│ \"link\": link._ref.<LegacySingleKeyJoin source=___refJoin_4 keyExpr=_id>.<LegacyScope expr={ | |
│ ..., | |
│ \"popularArticles\": popularArticles[]._ref[].<LegacySingleKeyJoin source=___refJoin_6 keyExpr=_id>[].<LegacyScope expr={ | |
│ \"_type\": _type, | |
│ \"_id\": _id, | |
│ \"slug\": slug, | |
│ \"title\": title, | |
│ \"summary\": summary | |
│ }> | |
│ }> | |
│ }>, | |
│ \"link\": link._ref.<LegacySingleKeyJoin source=___refJoin_8 keyExpr=_id>.<LegacyScope expr={ | |
│ ..., | |
│ \"popularArticles\": popularArticles[]._ref[].<LegacySingleKeyJoin source=___refJoin_10 keyExpr=_id>[].<LegacyScope expr={ | |
│ \"_type\": _type, | |
│ \"_id\": _id, | |
│ \"slug\": slug, | |
│ \"title\": title, | |
│ \"summary\": summary | |
│ }> | |
│ }>, | |
│ \"text\": text[].<LegacyScope expr={ | |
│ ..., | |
│ \"markDefs\": markDefs[].<LegacyScope expr={ | |
│ ..., | |
│ ...select((eq(_type, \"internalLink\")) => (<LegacyScope expr={ | |
│ \"_type\": _type, | |
│ \"document\": (@).reference._ref.<LegacySingleKeyJoin source=___refJoin_12 keyExpr=_id>.<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"_type\": _type, | |
│ \"slug\": slug, | |
│ \"title\": title, | |
│ \"parent\": <LegacyCorrelateJoin source=___join_14 checkExpr=(((eq(_type, \"articleGroup\")) || (eq(_type, \"topic\"))) && (in(^._id, (articles.articles)[]._ref)))>[].<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"_type\": _type, | |
│ \"title\": title, | |
│ \"slug\": slug, | |
│ \"parent\": <LegacyCorrelateJoin source=___join_16 checkExpr=(((eq(_type, \"articleGroup\")) || (eq(_type, \"topic\"))) && (in(^._id, (articles.articles)[]._ref)))>[].<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"_type\": _type, | |
│ \"title\": title, | |
│ \"slug\": slug | |
│ }> | |
│ }> | |
│ }> | |
│ }>)) | |
│ }> | |
│ }>, | |
│ \"markDefs\": markDefs[].<LegacyScope expr={ | |
│ ..., | |
│ ...select((eq(_type, \"internalLink\")) => (<LegacyScope expr={ | |
│ \"_type\": _type, | |
│ \"document\": (@).reference._ref.<LegacySingleKeyJoin source=___refJoin_18 keyExpr=_id>.<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"_type\": _type, | |
│ \"slug\": slug, | |
│ \"title\": title, | |
│ \"parent\": <LegacyCorrelateJoin source=___join_20 checkExpr=(((eq(_type, \"articleGroup\")) || (eq(_type, \"topic\"))) && (in(^._id, (articles.articles)[]._ref)))>[].<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"_type\": _type, | |
│ \"title\": title, | |
│ \"slug\": slug, | |
│ \"parent\": <LegacyCorrelateJoin source=___join_22 checkExpr=(((eq(_type, \"articleGroup\")) || (eq(_type, \"topic\"))) && (in(^._id, (articles.articles)[]._ref)))>[].<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"_type\": _type, | |
│ \"title\": title, | |
│ \"slug\": slug | |
│ }> | |
│ }> | |
│ }> | |
│ }>)) | |
│ }> | |
│ }>, | |
│ \"seo\": seo.<LegacyScope expr={ | |
│ ..., | |
│ \"title\": title, | |
│ \"metaTitle\": metaTitle, | |
│ \"description\": description, | |
│ \"image\": image.<LegacyScope expr={ | |
│ ..., | |
│ \"asset\": asset._ref.<LegacySingleKeyJoin source=___refJoin_24 keyExpr=_id>.<LegacyScope expr={ | |
│ \"_id\": _id, | |
│ \"extension\": extension, | |
│ \"metadata\": metadata.<LegacyScope expr={ | |
│ \"dimensions\": dimensions | |
│ }>, | |
│ \"mimeType\": mimeType, | |
│ \"path\": path, | |
│ \"url\": url | |
│ }> | |
│ }>, | |
│ \"keywords\": keywords | |
│ }> | |
│ }) | |
│ legacySliceHandling: true | |
└── Join legacyArraySemantics: true | |
│ outputName: refJoin_24 | |
│ placeholders[refJoin_24_loop]: (^.asset._ref) | |
│ predicates: | |
│ (_id) eq (^.asset._ref) | |
│ scope[0]: (image) | |
│ scope[1]: (seo) | |
├── Join legacyArraySemantics: true | |
│ │ outputName: join_22 | |
│ │ placeholders[join_22_loop2]: (^._id) | |
│ │ placeholders[join_22_loop]: (^._id) | |
│ │ predicates: | |
│ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ scope[0]: (___join_20[]) | |
│ ├── Join legacyArraySemantics: true | |
│ │ │ outputName: join_20 | |
│ │ │ placeholders[join_20_loop2]: (^._id) | |
│ │ │ placeholders[join_20_loop]: (^._id) | |
│ │ │ predicates: | |
│ │ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ │ scope[0]: (___refJoin_18[]) | |
│ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ outputName: refJoin_18 | |
│ │ │ │ placeholders[refJoin_18_loop]: (^.(@).reference._ref) | |
│ │ │ │ predicates: | |
│ │ │ │ (_id) eq (^.(@).reference._ref) | |
│ │ │ │ scope[0]: (markDefs[]) | |
│ │ │ │ scope[1]: (body[]) | |
│ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ outputName: join_16 | |
│ │ │ │ │ placeholders[join_16_loop2]: (^._id) | |
│ │ │ │ │ placeholders[join_16_loop]: (^._id) | |
│ │ │ │ │ predicates: | |
│ │ │ │ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ │ │ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ │ │ │ scope[0]: (___join_14[]) | |
│ │ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ │ outputName: join_14 | |
│ │ │ │ │ │ placeholders[join_14_loop2]: (^._id) | |
│ │ │ │ │ │ placeholders[join_14_loop]: (^._id) | |
│ │ │ │ │ │ predicates: | |
│ │ │ │ │ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ │ │ │ │ ((articles.articles)[]._ref) in (^._id) | |
│ │ │ │ │ │ scope[0]: (___refJoin_12[]) | |
│ │ │ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ │ │ outputName: refJoin_12 | |
│ │ │ │ │ │ │ placeholders[refJoin_12_loop]: (^.(@).reference._ref) | |
│ │ │ │ │ │ │ predicates: | |
│ │ │ │ │ │ │ (_id) eq (^.(@).reference._ref) | |
│ │ │ │ │ │ │ scope[0]: (markDefs[]) | |
│ │ │ │ │ │ │ scope[1]: (text[]) | |
│ │ │ │ │ │ │ scope[2]: (body[]) | |
│ │ │ │ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ │ │ │ outputName: refJoin_10 | |
│ │ │ │ │ │ │ │ placeholders[refJoin_10_loop]: (^.(popularArticles[]._ref)) | |
│ │ │ │ │ │ │ │ predicates: | |
│ │ │ │ │ │ │ │ (_id) in (^.(popularArticles[]._ref)) | |
│ │ │ │ │ │ │ │ scope[0]: (___refJoin_8[]) | |
│ │ │ │ │ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ │ │ │ │ outputName: refJoin_8 | |
│ │ │ │ │ │ │ │ │ placeholders[refJoin_8_loop]: (^.link._ref) | |
│ │ │ │ │ │ │ │ │ predicates: | |
│ │ │ │ │ │ │ │ │ (_id) eq (^.link._ref) | |
│ │ │ │ │ │ │ │ │ scope[0]: (body[]) | |
│ │ │ │ │ │ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ │ │ │ │ │ outputName: refJoin_6 | |
│ │ │ │ │ │ │ │ │ │ placeholders[refJoin_6_loop]: (^.(popularArticles[]._ref)) | |
│ │ │ │ │ │ │ │ │ │ predicates: | |
│ │ │ │ │ │ │ │ │ │ (_id) in (^.(popularArticles[]._ref)) | |
│ │ │ │ │ │ │ │ │ │ scope[0]: (___refJoin_4[]) | |
│ │ │ │ │ │ │ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ │ │ │ │ │ │ outputName: refJoin_4 | |
│ │ │ │ │ │ │ │ │ │ │ placeholders[refJoin_4_loop]: (^.link._ref) | |
│ │ │ │ │ │ │ │ │ │ │ predicates: | |
│ │ │ │ │ │ │ │ │ │ │ (_id) eq (^.link._ref) | |
│ │ │ │ │ │ │ │ │ │ │ scope[0]: (links[]) | |
│ │ │ │ │ │ │ │ │ │ │ scope[1]: (body[]) | |
│ │ │ │ │ │ │ │ │ │ ├── Join legacyArraySemantics: true | |
│ │ │ │ │ │ │ │ │ │ │ │ outputName: refJoin_2 | |
│ │ │ │ │ │ │ │ │ │ │ │ placeholders[refJoin_2_loop]: (^.asset._ref) | |
│ │ │ │ │ │ │ │ │ │ │ │ predicates: | |
│ │ │ │ │ │ │ │ │ │ │ │ (_id) eq (^.asset._ref) | |
│ │ │ │ │ │ │ │ │ │ │ │ scope[0]: (body[]) | |
│ │ │ │ │ │ │ │ │ │ │ ├── FetchSource attributes: - | |
│ │ │ │ │ │ │ │ │ │ │ │ constraint: (((eq(_type, \"homepage\")) && (in(_id, *)))) | |
│ │ │ │ │ │ │ │ │ │ │ │ limit: 1 | |
│ │ │ │ │ │ │ │ │ │ │ │ outputName: fetch_1 | |
│ │ │ │ │ │ │ │ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ │ │ │ │ │ │ │ constraint: (in(_id, *)) | |
│ │ │ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].lhs: (_id) | |
│ │ │ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].op: eq | |
│ │ │ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].placeholder: refJoin_2_loop | |
│ │ │ │ │ │ │ │ │ │ │ outputName: refJoin_2_fetch_3 | |
│ │ │ │ │ │ │ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ │ │ │ │ │ │ constraint: (in(_id, *)) | |
│ │ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].lhs: (_id) | |
│ │ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].op: eq | |
│ │ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].placeholder: refJoin_4_loop | |
│ │ │ │ │ │ │ │ │ │ outputName: refJoin_4_fetch_5 | |
│ │ │ │ │ │ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ │ │ │ │ │ constraint: (in(_id, *)) | |
│ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].lhs: (_id) | |
│ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].op: in | |
│ │ │ │ │ │ │ │ │ loopConditions[1].predicates[1].placeholder: refJoin_6_loop | |
│ │ │ │ │ │ │ │ │ outputName: refJoin_6_fetch_7 | |
│ │ │ │ │ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ │ │ │ │ constraint: (in(_id, *)) | |
│ │ │ │ │ │ │ │ loopConditions[1].predicates[1].lhs: (_id) | |
│ │ │ │ │ │ │ │ loopConditions[1].predicates[1].op: eq | |
│ │ │ │ │ │ │ │ loopConditions[1].predicates[1].placeholder: refJoin_8_loop | |
│ │ │ │ │ │ │ │ outputName: refJoin_8_fetch_9 | |
│ │ │ │ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ │ │ │ constraint: (in(_id, *)) | |
│ │ │ │ │ │ │ loopConditions[1].predicates[1].lhs: (_id) | |
│ │ │ │ │ │ │ loopConditions[1].predicates[1].op: in | |
│ │ │ │ │ │ │ loopConditions[1].predicates[1].placeholder: refJoin_10_loop | |
│ │ │ │ │ │ │ outputName: refJoin_10_fetch_11 | |
│ │ │ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ │ │ constraint: (in(_id, *)) | |
│ │ │ │ │ │ loopConditions[1].predicates[1].lhs: (_id) | |
│ │ │ │ │ │ loopConditions[1].predicates[1].op: eq | |
│ │ │ │ │ │ loopConditions[1].predicates[1].placeholder: refJoin_12_loop | |
│ │ │ │ │ │ outputName: refJoin_12_fetch_13 | |
│ │ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ │ constraint: ((((in(_id, *)) && (eq(_type, \"articleGroup\"))) || ((in(_id, *)) && (eq(_type, \"topic\"))))) | |
│ │ │ │ │ loopConditions[1].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ │ │ │ │ loopConditions[1].predicates[1].op: in | |
│ │ │ │ │ loopConditions[1].predicates[1].placeholder: join_14_loop | |
│ │ │ │ │ loopConditions[2].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ │ │ │ │ loopConditions[2].predicates[1].op: in | |
│ │ │ │ │ loopConditions[2].predicates[1].placeholder: join_14_loop2 | |
│ │ │ │ │ outputName: join_14_fetch_15 | |
│ │ │ │ └── FetchSource attributes: - | |
│ │ │ │ constraint: ((((in(_id, *)) && (eq(_type, \"articleGroup\"))) || ((in(_id, *)) && (eq(_type, \"topic\"))))) | |
│ │ │ │ loopConditions[1].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ │ │ │ loopConditions[1].predicates[1].op: in | |
│ │ │ │ loopConditions[1].predicates[1].placeholder: join_16_loop | |
│ │ │ │ loopConditions[2].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ │ │ │ loopConditions[2].predicates[1].op: in | |
│ │ │ │ loopConditions[2].predicates[1].placeholder: join_16_loop2 | |
│ │ │ │ outputName: join_16_fetch_17 | |
│ │ │ └── FetchSource attributes: - | |
│ │ │ constraint: (in(_id, *)) | |
│ │ │ loopConditions[1].predicates[1].lhs: (_id) | |
│ │ │ loopConditions[1].predicates[1].op: eq | |
│ │ │ loopConditions[1].predicates[1].placeholder: refJoin_18_loop | |
│ │ │ outputName: refJoin_18_fetch_19 | |
│ │ └── FetchSource attributes: - | |
│ │ constraint: ((((in(_id, *)) && (eq(_type, \"articleGroup\"))) || ((in(_id, *)) && (eq(_type, \"topic\"))))) | |
│ │ loopConditions[1].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ │ loopConditions[1].predicates[1].op: in | |
│ │ loopConditions[1].predicates[1].placeholder: join_20_loop | |
│ │ loopConditions[2].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ │ loopConditions[2].predicates[1].op: in | |
│ │ loopConditions[2].predicates[1].placeholder: join_20_loop2 | |
│ │ outputName: join_20_fetch_21 | |
│ └── FetchSource attributes: - | |
│ constraint: ((((in(_id, *)) && (eq(_type, \"articleGroup\"))) || ((in(_id, *)) && (eq(_type, \"topic\"))))) | |
│ loopConditions[1].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ loopConditions[1].predicates[1].op: in | |
│ loopConditions[1].predicates[1].placeholder: join_22_loop | |
│ loopConditions[2].predicates[1].lhs: ((articles.articles)[]._ref) | |
│ loopConditions[2].predicates[1].op: in | |
│ loopConditions[2].predicates[1].placeholder: join_22_loop2 | |
│ outputName: join_22_fetch_23 | |
└── FetchSource attributes: - | |
constraint: (in(_id, *)) | |
loopConditions[1].predicates[1].lhs: (_id) | |
loopConditions[1].predicates[1].op: eq | |
loopConditions[1].predicates[1].placeholder: refJoin_24_loop | |
outputName: refJoin_24_fetch_25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment