IsaacLevon
IsaacLevon

Reputation: 2570

Does MongoRepository utilize MongoDB cursor?

Taken from this SO answer:

@Query("{}")
Stream<Alarm>  findAllByCustomQueryAndStream();

I'm trying to understand how would that work for a large collection? Does this utilize MongoDB cursor?

Upvotes: 0

Views: 181

Answers (1)

D. SM
D. SM

Reputation: 14490

All find queries use cursors..

Upvotes: 1

Related Questions