I want to query against a condition that the string concatenation of two fields is larger that a given value,something like the following,but I don't know how to write the queryCondition. Could someone help on this?
long t = 1479690653366;
String id = "5832499d63594c3b24030c19";
//There are _id and time fields in the document
DBCollection collection = ...
collection.find(<queryCondition>);
The logic of <queryCondition> is to find the documents whose concatenation of _time and _id column is larger than the concatenation of time and id, that is 14796906533665832499d63594c3b24030c19