For page performance optimization:
With complex pages, a number of data collections may be involved, and so a number of datasets might be added to the page. With a dynamic page, the other datasets may be linked to the dynamic dataset (and to each other), and then page elements are linked to fields in the various datasets.
In some cases, instead of adding a dataset for another collection and linking it to the dynamic dataset, the additional collection can be made available to the page as a reference field collection in the dynamic dataset collection (and similarly for other related collections).
My question concerns page performance/responsiveness. Is a performance advantage (or disadvantage) obtained by including collections as reference fields in a collection, instead of adding them to a page as separate datasets which are then linked in the dataset configurations?
There seem to be at least two dimensions to this performance question:
- Effect on performance of a specific page when using fewer datasets by including reference fields in the primary collection(s). [This is my question above.]
- Effect on raw performance in querying a collection with reference fields (that are unrelated to that query) compared to querying the same collection without the reference fields. This dimension may constrain (or encourage) a practice of adding reference fields to a collection for a special purpose, where most uses of the collection may not involve those reference fields.
If there is only slight performance benefit in using reference fields in a dataset collection instead of multiple datasets, my relatively uninformed inclination is to avoid adding reference fields for limited-use special purposes; instead, use multiple datasets. But with this topic submission, I’m hoping to become more informed about what is actually the best practice.
Thanks!