storm
storm copied to clipboard
Use query.Raw(), q.Matcher not work.
DB.Select(q.Eq("DeviceId", Id), q.Gte("CreateTime", startTime), q.Lte("CreateTime", endTime)).Find(&list)
Matcher success
DB.Select(q.Eq("DeviceId", Id), q.Gte("CreateTime", startTime), q.Lte("CreateTime", endTime)).Bucket("DeviceRecord").Raw()
Matcher not work.
This is the intended behaviour, Raw
and RawEach
don't decode the value so it can't use the matchers, they were created for performance.
@oldfeel What would you like to do exactly ?
I stored in the same bucket in different data, the same field have DeviceId, CreateTime. And some different filed.
I need to get the data matcher to DeviceId, how to do?
Thank you, @asdine !