storm icon indicating copy to clipboard operation
storm copied to clipboard

Use query.Raw(), q.Matcher not work.

Open oldfeel opened this issue 7 years ago • 2 comments

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.

oldfeel avatar Jul 12 '17 12:07 oldfeel

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 ?

asdine avatar Jul 12 '17 12:07 asdine

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 !

oldfeel avatar Jul 12 '17 12:07 oldfeel