We using Jira Server with Scriptrunner. When I fire a sql request with groovy it takes sometimes 10x longer than direct as sql request. But we also have extreme fluctuations.
The database is Oracle. In jira the max pool size is 20 connections.
My example SQL (~3500 rows)
SELECT * FROM CWD_USER_ATTRIBUTES
With groovy/scriptrunner:
DatabaseUtil.withSql("MY_POOL") { StrictSql sql ->
sql.rows(sqlString)
}
Some test calls in milliseconds:
With a sql client without scriptrunner (milliseconds):
Smaller SQL request with only one row needs <20ms. No problems.
Anybody an idea or a tip for better analyse?
Thank you!
When you say "With a sql client without scriptrunner" do you mean with a native client like sqlplus? Or a other jdbc client?
I can't really explain the variance, something doesn't really add up there.
Where/how is the pool configured to 20 connections?
I mean a other client (DataGrip).
We configured it in the resources from scriptrunner. But currently we use the "Local Instance". I hope this mean it use the same settings from the dbconfig.xml.
But now we will try a Database connection in resources. I hope I can setup better connection with the additional additional properties.
Maybe you have a good tipp :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> But now we will try a Database connection in resources.
That's worth a try. Let us know if that improves things.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.