mongodb - Spring MongoRepository pagination performance -
i using spring boot base application ,its has record method pagination
public interface assignmentrepository extends mongorepository<assignment, string> { page<assignment> findbysectionidanddelete(string sectionid, boolean delete, pageable pageable); }
since method execution notice performance degradation , , added debug log , print mongo query
2016-02-08 17:40:08 debug mongotemplate:1635 - find using query: { "sectionid" : "55b1c4e3e4b0d89510c6aa27" , "delete" : false} fields: null class: class com.era.core.domain.assignment in collection: assignment
assignment collection indexes
sectionid,delete
my questions is, pagination happening on database or application (mongo repository) level?
Comments
Post a Comment