Improve sql in PermissionBitFactoryImpl
1) proper joins - we don't want more join conditions in the where clause
2) drop unnecesary table joins like identifier just to get id and inode just to reach identifier. we already have the identifier field on assets
3) change 'in' and 'exists' to left outer join where not null
the only thing left here is to get runtime difference at 'the big db we have on ec2'
Dean, this is a big performance improvement on permission sql. I think that running our unit tests is enough here.
Compile with: ant jar-with-tests deploy-no-jsp uncomment-test-servlet
Then run normally fresh starter then go
http://localhost:8080/servlets/test?resultType=plain&class=com.dotmarketing.business.PermissionAPITest
http://localhost:8080/servlet/test?resultType=plain&class=com.dotmarketing.business.PermissionAPITest worked fine, adding to QA testing scripts...
............... Time: 24.043
OK (15 tests)
Yea and Arnaud had a good experience today on HealthOne with setting permissions and speed.
Thanks, Jason S. Tesser Director, Support Services dotCMS, Inc. T: 305.858.1422 x7003 http://twitter.com/dotCMS www.dotcms.com
On Tue, Oct 2, 2012 at 4:19 PM, DeanGonzalez [email protected]:
http://localhost:8080/servlet/test?resultType=plain&class=com.dotmarketing.business.PermissionAPITestworked fine, adding to QA testing scripts...
............... Time: 24.043
OK (15 tests)
— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/53#issuecomment-9085322.