I have a choice from (nothing complicated)
Select * from VIEW
This view contains about 6,000 records and about 40 columns. It comes from a Lotus Notes SQL database. Thus, my ODBC drive is the LotusNotesSQL driver. The request takes about 30 seconds to complete. The company I worked with used EXCEL to run a query and write everything to a worksheet. Since I assume that he writes all the cells in cells, it took 30-40 minutes to complete this.
Then I used access to MS. I created a local replica table in Access to store data. My first attempt was
INSERT INTO COLUMNS OF LOCAL TABLE FROM (SELECT * FROM VIEW)
Please note that this is pseudo code. This continued successfully, but again took 20 to 30 minutes. Then I used VBA to scroll through the data and insert it manually (using the INSERT statement) for each individual record. It took about 10 to 15 minutes. This was my best example.
What do I need to do after: After I have the data, I need to filter it through the department. The fact is that if I put the where clause in the SQL query (the time jumps from 30 seconds to execute the query, up to 10 minutes + time to write to the local / excel table). I do not know why. MAYBE because columns are all text columns?
If we change some columns to integers, it will do it faster in terms of where <
I am looking for suggestions on how to approach this. My boss said that we can use some kind of Java based solution. Will this help? I am not a java person, but C #, and maybe I will run them to use C #, but I'm mostly looking for suggestions on how to reduce time. I have already reduced it from 40 minutes to 10 minutes, but I want it to be less than 2 minutes.
Just to pounce:
It takes about 30 seconds to complete the request.
The request takes about 15 - 40 minutes for local use in Excel / Access
You will need less than 2 minutes
Java solution can be used
You can offer other solutions instead of java.