I have more than 20000 documents in mongo and also added the index on date
and version
and I want to order it by these two fields
order_by('-date', '-version')
but while ordering it throws this error
database error: too much data for sort() with no index. add an index or specify a smaller limit
Could you please help me out to resolve the above issue?