Read/Write distribution over MySQL Master/Slaves using Dapper

asp.net c# dapper mysql

Question

Would dapper have any problems with using two IDbConnection objects for distributing Writes and Reads between MySQL Master/Slaves?

Accepted Answer

No, not at all.

Dapper's identity cache uses the connection string as part of the key. This means you could even have your tables "out-of-column-order" in both the master and slave, and dapper would cope fine with it.




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why