DaSourcerer/yii — comment on commit c2bcf6a3d832098b3cc9905c4541e74bc5234e65
File: framework/web/CDbHttpSession.php line 140
By DaSourcerer:

Hm, good question. Considering that all binary field types actualy have an upper limit to how much data they can cary and taking into account that there is no way to know in advance how large a session can grow, I think it is a *safe* choice. If it's *optimal* ... Pretty sure it's not. MySQL's ```LONGBLOB``` field type alone can take up to [4GB of payload][1] - hard to believe a session could ever grow so large. I cannot estimate the overhead of that, though. It might be worth to investigate this further and possibly adjust the code in ```CDbCache.createCacheTable()``` as well.

[1]: http://dev.mysql.com/doc/refman/5.1/en/string-type-overview.html