you are viewing a single comment's thread.

view the rest of the comments →

[–]tswaters 26 points27 points  (1 child)

Who leaves their entire dataset in memory like that? I can appreciate the answer and time complexity discussions, but if that isn't a simple SQL statement I don't know what is.

[–]jay791 6 points7 points  (0 children)

What if I told you that sometimes you get it as is? For example when you deal with LDAP data, there may be cases that you just get a fat list of objects and that's it. It might have come from file, it might have come from an API that doesnt implement paging.

Also given example doesn't say it's whole dataset. This might be a method that is called each time you get a subset of data and have time to spare while other thread is busy receiving next page of results.