Closed marianvlad closed 5 years ago
Any suggestions on what to adjust by chance?
@marianvlad A simple sollution could be caching.
For one of my older projects i've build a caching layer on top of the tagging trait with some events to cleanup the cache when new tags are inserted.
An other option could be to paginate the results returned by withAllTags
Late to the party here but you should definitely paginate your response.
$posts = Post::withAllTags(['tag1, tag2])->paginate();
Use eager loading please.
I use this package and I have a tag used by ~9k posts and when I use withAllTags method to get the posts, my website dies.