Grails Service Calls From TagLib Overhead -
i have simple taglib , service:
class testtaglib { fooservice fooservice static namespace = "bar" def test = { out << "text" } } class fooservice { //this empty method absolutely nothing void foo() { } }
if repeat taglib 20 times on page, executes instantly. if call service:
... fooservice.foo() out << "test" ...
suddenly 20 taglibs cause page take 2 seconds load. doesn't seem right overhead of service call high...or it? how go debugging this?
service methods default transactional. so, every call of fooservice.foo()
getting overhead of complete database transaction creation , commit.
Comments
Post a Comment