You are here
(OL is crazily flexible when it comes to maps)
Not that I have the time but I've been thinking about making an OpenLayers module
Oh, for sure. However, this is used only in GraphQL / regular-JSON requests only, so no templates. Proper caching would be nice but I don't have time to set something properly robust up.
Don't need the multiple fields after all.
Hmm, for this case ::get()->map('ID', 'FieldName')->toArray() seems to do the trick
Everything's a trade-off (edited)
Also realise it's not that huge a number in real terms, but they still have overhead and I've got limited compute resources to work with. Sacrificing a little memory temporarily makes more sense in this case.
Granted, it might not actually be that many but it's not impossible.
Yeah, but I don't want to run ~20 queries where one will do 😄
I did find ->map(), but need more than one field. If I have to do it manually it's no big deal, I just try to not do that if there's a framework-sanctioned way