Hi, when using mongodb as persistence, packets collection created automatically.
When I looked at indexes, I saw the following indexes:
_id_
client_1
added_1
In reality, there is no client field in the stored documents. But I see topic field. Example:
{ "_id" : ObjectId("57d1186d684247110e4c92ba"), "topic" : "garage/light/ext/status", "payload" : BinData(0, "MA=="), "messageId" : "BJKcK90i", "qos" : NumberInt(0), "retain" : true }
As far as I understand, topic field must be indexed instead of client.
Am I wrong?
Hi, when using
mongodb
as persistence,packets
collection created automatically. When I looked at indexes, I saw the following indexes:_id_
client_1
added_1
In reality, there is no
client
field in the stored documents. But I seetopic
field. Example:{ "_id" : ObjectId("57d1186d684247110e4c92ba"), "topic" : "garage/light/ext/status", "payload" : BinData(0, "MA=="), "messageId" : "BJKcK90i", "qos" : NumberInt(0), "retain" : true }
As far as I understand,topic
field must be indexed instead ofclient
. Am I wrong?