[hibernate-issues] [JIRA] (HHH-13906) Unexpected CREATE SEQUENCE defaults in DB2390V8Dialect

Knut Wannheden (JIRA) jira at hibernate.atlassian.net
Wed Mar 25 12:09:50 EDT 2020


Knut Wannheden ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5c405861b4d5d75a3b52ed44 ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYzgxOGM2YjljZGY1NGIwMThhZDNkMzZmMWVhODQ4Y2QiLCJwIjoiaiJ9 ) / Improvement ( https://hibernate.atlassian.net/browse/HHH-13906?atlOrigin=eyJpIjoiYzgxOGM2YjljZGY1NGIwMThhZDNkMzZmMWVhODQ4Y2QiLCJwIjoiaiJ9 ) HHH-13906 ( https://hibernate.atlassian.net/browse/HHH-13906?atlOrigin=eyJpIjoiYzgxOGM2YjljZGY1NGIwMThhZDNkMzZmMWVhODQ4Y2QiLCJwIjoiaiJ9 ) Unexpected CREATE SEQUENCE defaults in DB2390V8Dialect ( https://hibernate.atlassian.net/browse/HHH-13906?atlOrigin=eyJpIjoiYzgxOGM2YjljZGY1NGIwMThhZDNkMzZmMWVhODQ4Y2QiLCJwIjoiaiJ9 )

Issue Type: Improvement Affects Versions: 5.4.12 Assignee: Unassigned Components: hibernate-core Created: 25/Mar/2020 09:09 AM Priority: Major Reporter: Knut Wannheden ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5c405861b4d5d75a3b52ed44 )

While I have only worked with DB2 on other platforms and thus not with DB2/390 v8, when I look at the `DB2390V8Dialect#getCreateSequenceString(String)` implementation (see https://github.com/hibernate/hibernate-orm/blame/master/hibernate-core/src/main/java/org/hibernate/dialect/DB2390V8Dialect.java#L26-L28 ) it strikes me as odd to have the `NOCACHE` option in there. Typically the default would be `CACHE 20` (which is what happens when the `CACHE` clause is left out). Also a few of the other clauses could probably be left out, since they correspond to the default value and this is also how Hibernate works in the case of most other supported dialects.

`NOCACHE` is of course also bad for performance and I think it would for this reason also make sense to just leave out the `CACHE` clause here.

( https://hibernate.atlassian.net/browse/HHH-13906#add-comment?atlOrigin=eyJpIjoiYzgxOGM2YjljZGY1NGIwMThhZDNkMzZmMWVhODQ4Y2QiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13906#add-comment?atlOrigin=eyJpIjoiYzgxOGM2YjljZGY1NGIwMThhZDNkMzZmMWVhODQ4Y2QiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100122- sha1:092c6a7 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200325/54968cd4/attachment.html 


More information about the hibernate-issues mailing list