Skip to content

v7.0.0

Compare
Choose a tag to compare
@koresar koresar released this 08 Dec 07:27
· 8 commits to master since this release

BREAKING: This release would add new (default) indexes to your databases. Please, remove old and/or unused indexes yourself.

Reasoning and details

Unluckily, all the default indexes were suboptimal. The book property always had the lowest cardinality. However, we always query by the book first and then by some other properties. Thus all the default indexes were near useless.

This release fixes the unfortunate mistake.

  • The book property cardinality was moved to the beginning of all default indexes.
  • Most of the default indexes were useless in majority of use cases. Thus, were removed. Only 4 default indexes exist in medici v7.0:
    • _id
    • _journal
    • book,accounts,datetime
    • book,account_path.0,account_path.1,account_path.2,datetime
  • The datetime is the only one to be used in the default indexes. Additional timestamp doesn't make any sense.
  • Removed the book.listAccounts() caching which was added in the previous release (v6.3). The default indexes cover this use case now. Moreover, the index works faster than the cache.

Commits:

  • feat: remove the recently added listAccount() caching as useless after the default indexes revamp e91723c
  • feat: better default indexes 73c6c9a

v6.3.3...v7.0.0