Automate handling of added/modified indices on package upgrade

Open
#762 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Domain
databases, tooling

Research direction

Start by tracing the Initialize and Activate lifecycle phases and the existing SetMapSelectibility behavior. Define how the proposed BuildIndices phase and command-line deferral flag fit into that lifecycle. Done means added or modified indices are detected, built or rebuilt according to the flag, and enabled for use without package-developer work.

Written by the indexing model from the issue text.

Description

enhancement needs spec

End goal:
A package developer should have to do zero work to handle addition of new indices in a new release of their package.

Placeholder from AppS/HS(Dev)Ops discussion today - could do something like:
In Initialize, capture the set of existing indices (in code) - might be empty.
In Activate, capture the set of modified indices (added/updated) then SetMapSelectibility to 0 for each of them.
Subject to command line flag (defaulting to "build them right now" but allowing deferral as well) call a new BuildIndices lifecycle phase that builds/rebuilds the new/modified indices then enables them for use.

Dominant language
ObjectScript
Stars
41
Forks
33
Avg merge
23h 20m
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intersystems/ipm

All issues in intersystems/ipm

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.