Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Too many context objects are created when generating SQL #4672

@lukaseder

Description

@lukaseder

When SQL is generated in jOOQ, there are too RenderContext objects being created, instead of a single one. An additional DataMap is created with DefaultDSLContext, as the Configuration's DataMap isn't passed on to the render context.

This excessive object creation accounts for 3% - 5% of the time spent in a high throughput benchmark and should be improved.

This is a finding from analyses made after a third-party benchmark comparing jOOQ with JDBC, Hibernate, Spring Data:
https://github.com/nithril/sandbox-query-benchmark-jooq-hibernate-jdbc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions