N
Neon•15mo ago
extended-salmon

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
multiple-amethyst
multiple-amethyst•15mo 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
multiple-amethyst
multiple-amethyst•15mo 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.
deep-jade
deep-jade•15mo 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 🙂
extended-salmon
extended-salmonOP•15mo ago
I think I followed the link above initially, when running migrations I had to add $withoutTransactions=true :/
sunny-green
sunny-green•14mo 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?