There was a need to obtain a large amount of data from the database for the subsequent work of the user with them (Reference book of goods in a particular store).
For the code do not kick much. Programming for me is a hobby for the mind.
The query itself takes a long time. For this, we do it in the stream, display the endless ProgressBar to the user with the sentence "Lean back and wait." :-)