zbyszek, Ignite fetches query results in pages. When you call next() or hasNext() for the first time, client requests first page and receives it from server. It then iterates though this page which is obviously much faster (no network communication). Once the page is exceeded, next page is requested, and so on. So the behavior you see is correct.
BTW, default page size is 1024 entries, you can change it via Query#setPageSize parameter. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/