Ok, so I have an Excel Sheet with 38,500 row of data. Now, only 11,591 of those rows are relevant. The bad new is that I have to go through those 11,591 rows at least 72 times, which accounts for reading 834,552 rows. So I let it run for 10-15 minutes probably, and it evenutally froze and crashed (yay!).
Now, to put it into context, the Excel Sheet contains data like this:
Column 1 = The Year for the Data (2010 or 2011 in this case)
Column 2 = The Month of the Data represented as their month number (where 1 is January) (9 through 7 of the next year in this case)
Column 3 = A name of some sort (sorry, cant be more specific)
Column 4 = A city name
These are the only relevant columns for my current issue.
Now, what is happening here is: Given a Year, a Month, and a City, I am creating a data structure to store an Object that I created that holds a Name, 2 Cities, and two numbers. The Name is aquired from Column 3, 1st City from Column 4, 2nd City from Column 5, 1st number from Column 7, 2nd number from Column 10. Now, these Objects need to be separed by their Name because they will be treated differently later on, so my data structure is an ArrayList that contains ArrayLists of Object with all the same Name variable.
My current method of finding each Object is to increment rows until the correct Year is found, then increment rows until the correct Month is found, then increment rows looking for the correct City and creating Objects with that row until the row doesnt correspond with the correct Month anymore.
So clearly that isnt working for me. Does anyone else have any ideas as to how to approach this?