Skip to content
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

Implement keyword index re-generation #33

Open
pheller opened this issue Nov 27, 2022 · 0 comments
Open

Implement keyword index re-generation #33

pheller opened this issue Nov 27, 2022 · 0 comments

Comments

@pheller
Copy link
Member

pheller commented Nov 27, 2022

Add a "keyword" property to the Object schema, and a mechanism to then rebuild and insert into the database the objects that comprise the keyword indexes when a keyword is added, removed, or the keyword target is updated.

A new version of TLOT0011.PG ("HIGHLIGHTS"), for example, should not trigger reindexing because the target of the keyword does not change.

When rebuilding these index objects ("TAODCUSS.PGM" and "TAODCUKJ.D*"), the versions of these objects must increment when they change.

To prevent unnecessary objects in the database, should drop all old objects before inserting the new ones (maybe there are fewer keywords, or the secondary index size changes resulting in fewer secondary index objects).

All changes should be done such that client errors are prevented. That is, new objects that add a keyword should be added either before the keyword indices are updated, or all within the same transaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant