Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Node to url_alias table is fast with this query #787464: Boost trying to crawl Unpublished nodes
SELECT *
FROM url_alias
LEFT JOIN node ON node.nid = CAST( substring(url_alias.src, 6) AS UNSIGNED )
Need to get creative or change/add fields to the boost_cache table.
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedJoin url_alias table to nodes in the boost_cache table
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedWould like to join menu_router, url_alias & boost_cache tables together with the option of joining the node, term and user tables. From what I can tell the thing that is holding me back is the url_alias table. I don't have a reliable way to join to that ATM. Means I need to create a new field or rework what I got. Seems like the best bet is the src field on the url_alias table. dst and url would not be fast due to url being a text field in the boost table & that it contains the query string.
Using the substring trick, I can do fast joins but that is not a generalized solution. concat might be an option... nope that is SLOW.