-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HCK-8126, HCK-8127: RE of sequences and synonyms improvements #137
Conversation
…DLs of sequences when it takes more than 30s
…only those that are used in the REd tables and views, improved RE of synonyms by removed GET_DDL
|
||
logger.log( | ||
'info', | ||
{ message: 'Filter sequences finished', usedSequencesCount: usedSequences?.length || 0 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this means 'Filtering of sequences used in tables and views finished', at first I saw Getting sequences (which is the title i guess) and it was a bit misleading.
const sequenceDdlScriptsPromise = mapLimit(namesOfSequences, 50, async sequenceName => { | ||
try { | ||
const sequenceDdlScript = await execute( | ||
`SELECT JSON_OBJECT('ddl' VALUE DBMS_METADATA.GET_DDL('SEQUENCE', '${sequenceName}', '${schema}')) FROM DUAL`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vitalii4as FROM DUAL is new (it looks like), was it missing previously or you make sure that Duality views are properly handled explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and i will try to run some tests :)
Quality Gate passedIssues Measures |
Technical details
GET_DDL
call for synonyms, replaed it with LEFT JOIN with ALL_OBJECTS to obtain EDITIONABLEGET_DDL
of only used sequences