Page 146 of 211,284, showing 20 records out of 4,225,680 total, starting on record 2,901, ending on 2,920
# | Username | Text | |
---|---|---|---|
# | Aug 7th 2008, 10:11 | Lemon|work | 250% speed difference between a cold start and a hot start |
# | Aug 7th 2008, 10:12 | Lemon|work | but thats on my laptop and php is slow on it |
# | Aug 7th 2008, 10:12 | TommyO | was gonna say php/apache make up a part of that |
# | Aug 7th 2008, 10:12 | jonathan_ | @TommyO how does the beforeFilters callback help performance? |
# | Aug 7th 2008, 10:13 | Lemon|work | nothing |
# | Aug 7th 2008, 10:13 | Lemon|work | he meant that beforeFilters help in the development time |
# | Aug 7th 2008, 10:13 | Lemon|work | for optmizing |
# | Aug 7th 2008, 10:13 | jonathan_ | i see |
# | Aug 7th 2008, 10:13 | TommyO | jonathan_: it doesn't. it can help in controlling your query logic |
# | Aug 7th 2008, 10:13 | TommyO | right |
# | Aug 7th 2008, 10:14 | jonathan_ | ok |
# | Aug 7th 2008, 10:14 | TommyO | like I just added this line: $queryData['conditions'] = array_merge(array($this->alias . '.active' => 1), $queryData['conditions']); |
# | Aug 7th 2008, 10:14 | jonathan_ | so you queries are append with that condition |
# | Aug 7th 2008, 10:15 | TommyO | well, merged with that as a defualt. yep. so if I want otherwise I can ask for 'active' => array(0, 1) say for my admin methods |
# | Aug 7th 2008, 10:16 | TommyO | otherwise, all queries only apply to rows marked 'active', which I use frequently |
# | Aug 7th 2008, 10:16 | jonathan_ | cool |
# | Aug 7th 2008, 10:17 | gwoo | Lemon|work: yeah that shoudl be the case since all the paths are cache on the first run |
# | Aug 7th 2008, 10:18 | gwoo | Lemon|work: all the directories are search for classes, and object map and file map is built |
# | Aug 7th 2008, 10:18 | ammadsaleem | is it possible to create a function once and call it everywhere |
# | Aug 7th 2008, 10:18 | ammadsaleem | ? |