Answer the question
In order to leave comments, you need to log in
How to create nodes inside another node in drupal?
The bottom line is that, for example, I have a node (some kind of event) and if these events will occur in different places, at different times. That is, there is a node with a description of the event, photos, details ... and sub-nodes with addresses and time. Or maybe there is another way to implement it?
Answer the question
In order to leave comments, you need to log in
https://www.drupal.org/project/entityreference
create a field with a link to another node.
in the display settings specify the rendered entity
The title of the question somewhat contradicts its content.
Comparing entity_id with 5 values, post_type with 12. A total of 60 comparisons per entry! The optimizer will actually make fewer comparisons, but it's still very inefficient.
It is necessary to understand in detail the nuances and change the business logic.
just figure out how indexes are arranged in MySQL and everything will fall into place, for example, here is an article about the structure of indexes
To get started, throw MySQL in the trash.
If this is the only type of query on the table, make a composite index.
And besides, you need to watch explain
FORCE INDEX(`index_name`)
try adding to query
https://dev.mysql.com/doc/refman/5.7/en/index-hint...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question