following problem with SELECTS like this only in staging system:
SELECT * FROM `nd`
WHERE `nd`.`nd_id` IN (1, 396, 782, 830, 831, 1929, 3786, 5059, 5713, 5714, 6698)
AND `nd`.`nd_type` = 'App\Models\N'
AND `nd`.`deleted_at`
IS NULL
In my dev system the select needs 340 ms. In my staging system (other server) all CPU go up to 100% and never finish the selects. Same problem when I start this query direct in PHPMyAdmin in staging system.
How I can do? Some settings in config wrong?
Maybe the problem is: After deployment to staging the migration for set keys in ndaten table was not completed. The first key was set and migration execution stops. Repair and optimize the table already done.
Thanks for help :)