Answer the question
In order to leave comments, you need to log in
How to optimize database queries in Drupal8 on the example of a user profile?
Drupal8. I display only the avatar in the user profile. Or I display in the user's profile all his data. Question 1 - will the number of requests to the database be the same?
Question 2. Drupal uses the Twig template engine. If I want to put an avatar in my profile in the left bar - how best to do it Optimal? That is, either hook_preprocess, or display a view, which probably means requests to the database. What is the best? Maybe there is another option (without js).
Thank you.
Answer the question
In order to leave comments, you need to log in
Drupal8. I display only the avatar in the user profile. Or I display in the user's profile all his data. Question 1 - will the number of requests to the database be the same?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question