scope conceptsWithFieldGreaterThan.
sbool #verbose;
static Cl nuLike conceptsWithFieldGreaterThan(Class c, S field, O value) {
ret conceptsWithFieldGreaterThan(db_mainConcepts(), c, field, value);
}
static Cl conceptsWithFieldGreaterThan(Concepts concepts, Class c, S field, O value) {
// indexed
IFieldIndex index = concepts.getFieldIndex(c, field);
if (index cast ConceptFieldIndexDesc)
ret index.objectsWithValueGreaterThan(value);
// filter manually
if (verbose)
print("conceptsWithFieldGreaterThan: table scan of " + c + " for field " + field);
ret objectsWhereFieldGreaterThan(concepts.list(c), field, value);
}