Courses

Better Eloquent Performance

Aggregation: withAvg(), withMin() and withMax()

Previous: With() VS WithCount(): Out of RAM Memory?
avatar

Well, does it function properly if I use views in (MySQL or Postgres) and perform the math on the database level before just selecting the result?

avatar

If you use DB views for aggregation, then you don't need those functions from Eloquent, you just select the data from your view, I imagine.

avatar
You can use Markdown
avatar
You can use Markdown