B
B
BonBon Slick2018-01-25 21:32:04
SQL
BonBon Slick, 2018-01-25 21:32:04

How to get rid of join() completely?

After QueryBuilder becomes useless, and there are more than 25+ users per table , what to do? How to be? How to get rid of all joins and speed up fetches?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
d-stream, 2018-01-26
@BonBonSlick

The number of joins is not at all an indicator of the badness / goodness of the request.
Long query execution time and consumed resources - this may be the reason.

A
Antonio Solo, 2018-01-25
@solotony

as in Laravel - replace joins with select .... where .... in
but according to your mind - you need to optimize the table structure

A
Adamos, 2018-01-25
@Adamos

I correctly understood that you have a JOIN with 25 other tables?
By chance, not in order to find out everything about the current user?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question