Wiki

Articles in category "tips", sorted by viewsX
Displaying 81-90 of 122 result(s).

mysql performance tip

Created about a year ago by sirin kTips6 comments – viewed 6,418 times – ( +2 / -1 ) – version 1.1
When we are doing an insert of huge no.of rows into an SQL table ,Normally we will try to write separate insert quries this may lead us to a long duration of execution time and we can increase the speed of executing SQL quries by adding all the rows into a single insert query.
tags: mysql

Debugging CActiveRecord failed save() attempts

Created 11 months ago by BoazTips0 comments – viewed 6,332 times – ( +4 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

BaseModuleAR class with MultiActiveRecord

Created 2 years ago by dinhtrungTips0 comments – viewed 6,248 times – ( +2 ) – version 1.1
MultiActiveRecord is an extension that add support for multiple database connection for your application.

Reading the doc

Created 3 years ago by zaccariaTips0 comments – viewed 6,226 times – ( +21 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created about a year ago by sebTips0 comments – viewed 6,226 times – ( +1 / -1 ) – version 1.1
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

Using sub query for doubletts

Created about a year ago by mbTips3 comments – viewed 6,070 times – ( +1 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

Yii CDBHttpSession数据库存储session性能优化实战

Created 2 years ago by Darwin WenTips0 comments – viewed 5,868 times – ( +1 / -1 ) – version 1.1
上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created about a year ago by le_topTips0 comments – viewed 5,832 times – ( +5 ) – version 1.1
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

Syntax check

Created 2 years ago by Russell EnglandTips2 comments – viewed 5,640 times – ( +4 ) – version 1.1
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
tags: php, syntax