cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR]: ADD sticky for read write connection

Open itbdw opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

we need allow the immediate reading of records that have been written to the database during the current request cycle. If the sticky option is enabled and a "write" operation has been performed against the database during the current request cycle, any further "read" operations will use the "write" connection. This ensures that any data written during the request cycle can be immediately read back from the database during that same request.

Describe the solution you'd like learned from laravel

Additional context https://laravel.com/docs/9.x/database#read-and-write-connections

itbdw avatar Jul 27 '22 18:07 itbdw