core icon indicating copy to clipboard operation
core copied to clipboard

Improve sql in PermissionBitFactoryImpl

Open dotjorgeu opened this issue 14 years ago • 4 comments

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

dotjorgeu avatar Mar 30 '12 15:03 dotjorgeu

the only thing left here is to get runtime difference at 'the big db we have on ec2'

dotjorgeu avatar Jul 24 '12 18:07 dotjorgeu

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

dotjorgeu avatar Aug 16 '12 19:08 dotjorgeu

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)

DeanGonzalez avatar Oct 02 '12 20:10 DeanGonzalez

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.

dotcmsCodeReview avatar Oct 02 '12 20:10 dotcmsCodeReview