Alexander Makarov

Results 1736 comments of Alexander Makarov

https://github.com/yiisoft/yii2/pull/13162

Looks like a good idea. Further research on how to do it in MSSQL, Oracle and SQLite is needed to move forward to implementing it.

I don't remember the reason why it was made like that initially and I think that fixing it in 2.0 may cause issues in existing apps. Should be fixed in...

But that's quite inconsistent. It's better to cast to string than to have two types. Developers will use `===` and will be quite surprised when the project DB would exceed...

Actually what @rob006 proposes makes sense in practice. While under a 100 it may make sense to strictly compare counts, more than several thousands should always be done with `>`...

Let's cast to `int` as @rob006 originally proposed. @yiisoft/core-developers objections?

Do you still want slave connection to be a pool of database connections? i.e. if there's multiple slave instances, would it still look like a single one to developer?

Decorator sounds great but the thing is that selecting master or slave depends on the query being made i.e. read queries go to slave, write queries go to master so...