Performance issue with navigation link block #40750
Labels
[Block] Navigation Link
Affects the Navigation Link Block
[Block] Navigation
Affects the Navigation Block
[Block] Post Navigation Link
Affects the Post Navigation Link Block
[Type] Performance
Related to performance efforts
Description
There is a performance issue with navigation link block. The navigation link block, does a call to
get_post
. This can result in a datatbase call if the post is not primed in cache. If you have a large menu, with 50+ item, this can result in 50+ queries. This is a scale and performance issue.All posts should primed in one request.
Related to core issue, see - https://core.trac.wordpress.org/ticket/55428
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: