in mysql i have two tables
tableA
col1 col2 SIM1 ..........col24
-----------------------------------
a x 1 5
b y 1 3
c z 0 2
d g 2 1
tableB
colA colB SIM2
-------------------
x g 1
y f 0
x s 0
y e 2
Actually the number of records in the two tables in 0.4 million
i have a java program from which i am executing sql query using jdbc.
here is the query
SELECT *
FROM TableA
INNER JOIN TableB ON TableA.SIM1 = TableB.SIM2
INTO OUTFILE 'c:/test12226.csv' "+
FIELDS TERMINATED BY ','
ENCLOSED BY '\"'
LINES TERMINATED BY '\n'
This query is taking a really long time. for my application to be feasible this should not take more than 30 seconds. i understand the records are 0.4 million but such an operation in ms access takes less than 10 seconds. is java-mysql combination more time consuming than ms-access
i have allocated 1GB ram in debug configuration. please suggest.