I have a orientdb database with a document style storage. I have a class MyDocument with about 300.000 records, stored in a round robin fashion (no custom clustering strategy).
I have a numeric field that tells me the storage day in yyyyMMdd fashion, that gets indexed not uniquely with an SBtree.
Until I do queries such as:
select from MyDocument where publishDay=20151101
it works nicely: I get about 100 records per day.
if I use a range the pain starts:
select from MyDocument where publishDay between 20151101 and 20151102
If I do this query from the console it returns 0 records.
If I do this from the webapp it says
"fetched more than 50000 records: to speed up the execution, create an index or change the query to use an existent index"
but I already have an index, so it seems I cannot do more that queries on specific dates. also a trick such as:
select * from inputdocument where publishday = 20150102 or publishday = 20150101
BTW I use release 2.0.15
Am I doing something wrong? Have I reached the limit of orientdb with this kind of usage?

