iotagent-node-lib icon indicating copy to clipboard operation
iotagent-node-lib copied to clipboard

create mongodb index over Device collection

Open AlvaroVega opened this issue 1 year ago • 3 comments

Component

No response

Is your feature request related to a problem? Please describe

over id, s, ss, apikey and maybe type

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

The systemd version you checked that didn't have the feature you are asking for

No response

AlvaroVega avatar Feb 07 '24 10:02 AlvaroVega

Similar to https://github.com/telefonicaid/iotagent-node-lib/blob/301280a4644a93a68a836ec4a9ee2278f88f515a/lib/model/Group.js#L72

Old index with unique over id was removed https://github.com/telefonicaid/iotagent-node-lib/commit/08601b0a7e09368ffe68d51026b685c32dff0b67

AlvaroVega avatar Feb 07 '24 11:02 AlvaroVega

Hi @AlvaroVega, is mongodb index required in https://github.com/telefonicaid/iotagent-node-lib/blob/301280a4644a93a68a836ec4a9ee2278f88f515a/lib/model/Command.js#L37 If yes, should I raise a separate PR with the code changes.

KeshavSoni2511 avatar Feb 28 '24 14:02 KeshavSoni2511

I have no inputs about an index is required for commands. IMHO if not sure not add index.

AlvaroVega avatar Feb 28 '24 16:02 AlvaroVega