Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Well group by has performance issues for sure, you can solve that by using distinct + joins

Last updated 2 years ago.
0

@luknei Distinct isn't the same as group by. You can group by multiple fields for example.

Last updated 2 years ago.
0

This is one of the things that annoys me too. It was quite surprising to see it return incorrect results.

The count() function should already be implemented this way, but it is deliberately crippled because MySQL can't optimize subqueries.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

bweston92 bweston92 Joined 3 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.