[
https://issues.apache.org/jira/browse/SENTRY-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16640099#comment-16640099
]
kalyan kumar kalvagadda commented on SENTRY-2423:
-------------------------------------------------
{code:java}
public String getStrategyForNative(AbstractClassMetaData cmd, int
absFieldNumber)
{
// TODO If the user has generated the schema and the column for this
field is an autoincrement column then select IDENTITY
if
(getBooleanProperty(RDBMSPropertyNames.PROPERTY_RDBMS_LEGACY_NATIVE_VALUE_STRATEGY))
{
// Use legacy process for deciding which strategy to use
String sequence = null;
if (absFieldNumber >= 0)
{
// real field
sequence =
cmd.getMetaDataForManagedMemberAtAbsolutePosition(absFieldNumber).getSequence();
}
else
{
// datastore-identity surrogate field
sequence = cmd.getIdentityMetaData().getSequence();
}
if (dba.supportsOption(DatastoreAdapter.SEQUENCES) && sequence !=
null)
{
return "sequence";
}
return "table-sequence"; // Maybe ought to use "increment"
}
return super.getStrategyForNative(cmd, absFieldNumber);
}
{code}
> Increase the allocation size for auto-increment of id's for Snapshot tables.
> ----------------------------------------------------------------------------
>
> Key: SENTRY-2423
> URL: https://issues.apache.org/jira/browse/SENTRY-2423
> Project: Sentry
> Issue Type: Sub-task
> Components: Sentry
> Affects Versions: 2.2.0
> Reporter: kalyan kumar kalvagadda
> Assignee: kalyan kumar kalvagadda
> Priority: Major
> Attachments: SENTRY-2423.001.patch
>
>
> Currently sentry uses native strategy for auto generation of ID columns for
> which the allocation can not be increased.
>
> This should be change to "increment" strategy and which lets to configure the
> allocation size. This reduces the delay caused for checking the
> SEQUENCE_TABLE.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)