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

Indexes manager #415

Open
1 of 2 tasks
edobrb opened this issue Mar 2, 2023 · 0 comments
Open
1 of 2 tasks

Indexes manager #415

edobrb opened this issue Mar 2, 2023 · 0 comments
Assignees
Labels
📅 approved New feature approved and scheduled ✨ feature request New feature or request

Comments

@edobrb
Copy link
Collaborator

edobrb commented Mar 2, 2023

usage:

const plan = await entityManager.planIndexes({ ...typed indexes definition... })
console.table(plan)
const applied = await entityManager.applyIndexes(plan)
console.table(applied)

exposed types:

const Indexes = EntityManagerTypes<...>['indexes']
const allIndexes: Required<Indexes> = { ... definition of indexes for each collection ... }
await entityManager.applyIndexes(allIndexes)

drivers:

  • MongoDB support
  • Knex support
@edobrb edobrb added ✨ feature request New feature or request 📅 approved New feature approved and scheduled labels Mar 2, 2023
@edobrb edobrb self-assigned this Mar 2, 2023
@edobrb edobrb changed the title Mongodb indexes manager Indexes manager Mar 2, 2023
@edobrb edobrb mentioned this issue Mar 2, 2023
1 task
@edobrb edobrb closed this as completed in dc986b7 Mar 2, 2023
edobrb added a commit that referenced this issue Mar 2, 2023
@edobrb edobrb reopened this Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📅 approved New feature approved and scheduled ✨ feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant