iotagent-node-lib
iotagent-node-lib copied to clipboard
create mongodb index over Device collection
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
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
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.
I have no inputs about an index is required for commands. IMHO if not sure not add index.