8 months ago

Nova produce "too much" queries

Posted 8 months ago by schnettker

Hi there,

i have a table "worker" and a table "group". In the table group i have a leader (worker_id) and in the worker table a group_id (both "belongsto" each other)

The worker table belongs to 4 other tables and i have 300 worker.

A simple "BelongsTo::make('Leader','worker','App\Nova\Worker'),"

produce over 1.200 queries and the website needs 10s to load. I only want the worker_id and name for my select

Have i a thoughtless error?

Please sign in or create an account to participate in this conversation.