Issue when including view in a column with Yajra. #2932
Unanswered
mchourishi
asked this question in
Q&A
Replies: 1 comment 12 replies
-
You might be lazy loading some properties inside the view. On Laravel 9, you can enable strict mode to isolate this. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I have been using Yajra Datables 9.18 on Laravel 6 and have a custom column where I include a view. There's something really weird happening that I cant figure out. When I include view in the column, datatables run multiple queries from lot of different tables and hence slows down the retrieval. Even if I keep the view an empty file I still see the same issue. I want to query on one table and my controller only has one query.
I see this issue only when I have this custom column which includes the view.
As I mentioned before even if the view is empty file it still execute multiple queries (around 4000+)from multiple tables but you can see I am only querying one table with relationship.
Beta Was this translation helpful? Give feedback.
All reactions