Hi @gmahoney. Good question, although not sure I’ve got a good answer.
It is possible to lazily load child nodes, eg:
But I’m afriad for nodes with field types that are related to other database objects this isn’t easily possible. Relation fields don’t behave like real relations like you’d expect using
If we dug deep enough I suspect it would be possible to add this kind of behaviour - and I totally see the value in doing so - but right now my knowlegde of the internals of active record isn’t quite string enough to attempt this. Would be a valuable PR if anyone fancies diving in?
So as it stands now, if you’re concerned about the number of queries on a specific page, I think your best bet is to implement caching in the view.