Skip to content

Commit

Permalink
update doc with table
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 19, 2023
1 parent d77bcd1 commit 9a58864
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions doc/manuals/db_indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ It is recommended to create the following index in this collection:
The performance difference can be dramatic for large sets of data. For instance, for a collection with around ~3000000
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.
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 |


## Indexes in the aggregated data collection

Expand All @@ -29,4 +36,10 @@ It is recommended to create the following index in this collection:
The performance difference can be dramatic for large sets of data. For instance, for a collection with around ~6000000
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.
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 |

0 comments on commit 9a58864

Please sign in to comment.