I recently came across a module in my application that uses collections and lists. And yes, it is in Java. So either for performance reasons, or because the author used the Lists, as well as maps in many places. He performs the usual operations on it, like deleting some elements, adding, updating the list, and every time he does it, he does it by looking at the entire list. Several times the lists are in the range of 10,000 items.
Now here is my question: why is there no language function that facilitates this operation? I mean, why can't we have some rudimentary SQL that can be executed in lists and collections? Is there any language that has such a function?
PS: Well, I'm not sure if this is a bit subjective and against SO rules. But I feel a strong desire to ask about it here. Maybe admins can fix it. So here.
source
share