1

There is an option in the APDQC (Asynchronous Prefetch Database Query Cache) https://www.drupal.org/project/apdqc module for:

Prefetch views unpack data

It's unclear what this does. Should this be turned on or left off as default?

  • The Views plugin classes have an unpack_options method which takes the options for the View/display in the database and applies them on top of the defaults. I don't know the Views code deeply enough for this to be anything other than a guess, but that option probably just allows that data to be cached by APDQC – Clive May 4 '17 at 20:04
1

Really depends on your workload. In some cases having all of the views data prefetched is faster, in other cases it's slower. If you have 50+ views then it's best to leave it off, if you have just a couple views, turning it on is faster.

Side note: I created the patch for creating this cache in views, now I wish it was prefixed by the view name so prefetch would be easier.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.