aanari
Joined 14 years ago
Karma
5
Submissions
15
Member since
Mar 14
Joined 14 years ago
www.getmindsync.com
DM me if you would like to try some for free.
https://gist.github.com/aanari/349c7d97ed50c6f69930#file-bat...
By creating a separate function for the locking and updating of rows, we ensure that the `BEGIN/END` transaction is handled per iteration rather than at the very end, so we only lock rows while they are being processed. Since Postgres does not support nested transaction blocks, calling a defined function from within an anonymous function block seemed to be the easiest and clearest path to achieve this.
I recommend App::pmuninstall for this task:
pm-uninstall [options] Module
I am based in Los Angeles, but completely available to work with clients in San Francisco because I'm happy to travel, super communicative, and always available by Skype, email, phone, and FaceTime.
Email: [email protected]
Website: https://datomsolutions.com
LinkedIn: https://linkedin.com/in/alianari