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

Update db_indexes.md #625

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions doc/manuals/db_indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ query execution time can drop from 3 seconds to 1 millisecond.

Since version 3.0.0 of cygnus an index named `cyg_raw_opt` is created in this way but depending on datamodel:

| datamodel | keys |
| :-------------- | :--------------------------------------------------------------- |
| DMBYSERVICEPATH | recvTime, entityId, entityType, attrName, attrType, attrValue |
| DMBYENTITY | recvTime, attrName, attrType, attrValue |
| DMBYATTRIBUTE | recvTime, attrType, attrValue |
| datamodel | keys |
| :---------------- | :--------------------------------------------------------------- |
| dm-by-servicepath | recvTime, entityId, entityType, attrName, attrType, attrValue |
| dm-by-entity | recvTime, attrName, attrType, attrValue |
| dm-by-attribute | recvTime, attrType, attrValue |

Note that datamodel others that the ones above are not allowed by Cygnus.

## Indexes in the aggregated data collection

Expand All @@ -38,8 +39,10 @@ query execution time can drop from 28 seconds to 20 millisecond.

Since version 3.0.0 of cygnus index named `cyg_agg_opt` is created in this way but depending on datamodel:

| datamodel | keys |
| :--------------- | :------------------------------------------------- |
| DMBYSERVICEPATH | entityId, entityType, attrName, resolution, origin |
| DMBYENTITY | attrName, resolution, origin |
| DMBYATTRIBUTE | resolution, origin |
| datamodel | keys |
| :----------------- | :------------------------------------------------- |
| dm-by-servicepath | entityId, entityType, attrName, resolution, origin |
| dm-by-entity | attrName, resolution, origin |
| dm-by-attribute | resolution, origin |

Note that datamodel others that the ones above are not allowed by Cygnus.
Loading