Support the ongoing development of Laravel.io →
Database Eloquent

Hello,

I have a big problem and if it's true laravel will going to critical and unreliable situation !

I tried to normalize my database, so dev new function for receiving records. on low cpu-usage it's work as well, but when server in hug resource usage or opening phpmyadmin for checking database I received SQL error which show I insert duplicate primary key. it's should not occur because the query run after a condition (if not exists).

anybody know why it's occur and how should solve this problem?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Sina sina Joined 3 May 2015

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.

© 2025 Laravel.io - All rights reserved.