ColdBox BE

Any ideas why turning on Event Handling within Coldbox (latest update a few minutes ago) running on Railo would cause huge amounts of execution time on postLoad? My eventHandler is empty so its either coldbox or coldfusion causing the problem. I tried rolling back to latest stable of Railo & ColdBox and same problem happens.

With event handling turned on - page execution time is around 800ms & without event handling turned on page load is around 120ms.

Jeremy R. DeYoung
615.261.8201jeremy.deyoung@lunarfly.comLunarFly.com

What is event handling?

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

sorry I meant eventHandler

this.ormSettings = {
cfclocation = [“model”],
dialect = “MySQLwithInnoDB”,
dbcreate = “update”,
secondarycacheenabled = false,
cacheprovider = “ehCache”,
logSQL = false,
flushAtRequestEnd = false,
autoManageSession = false,
eventHandling = true,
eventHandler = “model.EventHandler”,
skipCFCWithError = false
};

signature0.jpg

Do you have injection enabled for entities?

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

signature0.jpg

Do you mean this in coldbox.cfc?

orm = {
injection = {
// enable entity injection
enabled = true,
// a list of entity names to include in the injections
include = “”,
// a list of entity names to exclude from injection
exclude = “audit”
}
};

signature0.jpg

signature0.jpg

Turn that off and try it

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

signature0.jpg

signature0.jpg

Getting better. It is about 500ms with EventHandler enabled verse without it.

signature0.jpg

signature0.jpg

signature0.jpg

Are you doing entity injections?

Not sure why it would slow it down so much. It should read the metadata once forever, so the first hit to entities is slow then it remembers.

Have you tried in Adobe?

I have not committed changes to event handling in a long time.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

signature0.jpg

signature0.jpg

signature0.jpg

have not tested adobe - will do so this afternoon.

and I’m not doing entity injection yet - I want to use the validation stuff so I believe I have to use that in order for it to work…?

signature0.jpg

signature0.jpg

signature0.jpg

signature0.jpg

Have you tried with 3.6 released?

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

signature0.jpg

signature0.jpg

signature0.jpg

signature0.jpg

tried 3.6 however apparently using a new feature dealing with messageBox so it just breaks. I’m going to try ACF10

signature0.jpg

signature0.jpg

signature0.jpg

signature0.jpg

signature0.jpg

i narrowed it down to Query of Query issue. Looks like EventHandler PostLoad is firing everytime I do a QoQ which is over 1200 times :frowning: Is there a quick fix for this or should I switch to a Structured/Array instead of doing a QoQ?

signature0.jpg

signature0.jpg

signature0.jpg

signature0.jpg

signature0.jpg

Weird. Why would a qofqdo that

Luis Majano
CEO
Ortus Solutions, Corp
Toll Free/Fax: 1-888-557-8057
Direct: 909-248-3408
www.ortussolutions.com
Twitter: @lmajano, @ortussolutions

i suspect a weird railo bug. I’ll open a ticket and see what they say.