N
Neon•17mo ago
fascinating-indigo

Use transactions/batching in Laravel

What's the best way to add batching to Laravel? Do we have a neon-serverless driver or something?
5 Replies
rival-black
rival-black•17mo ago
You could read the source code of the serverless driver to figure out the requests. But I'm note sure how worth that is
rival-black
rival-black•17mo ago
Neon
An Overview of Laravel and Postgres on Neon - Neon Guides
Learn how to integrate Laravel with Postgres on Neon, leveraging Laravel's Eloquent ORM and migrations for efficient database management.
inland-turquoise
inland-turquoise•17mo ago
I would not use the serverless driver if it's not necessary. Most of the time you can use your regular postgres driver. I'm sure laravel has plenty great ones to choose from 🙂
fascinating-indigo
fascinating-indigoOP•17mo ago
I think I followed the link above initially, when running migrations I had to add $withoutTransactions=true :/
harsh-harlequin
harsh-harlequin•16mo ago
Would you mind sharing a snippet of your migration file that was failing? Or were you using squashed migrations?

Did you find this page helpful?