hi
newbie here. Whenever I try to insert huge number of rows (say 25000 records) into a table my transaction timesout. I use this query
insert into gTable select A,B, C, D, E,F,G,sum(V) ,((Floor(H/10000))*10000) as ttime, min(V) , max(V), sum(V)/6 from preTable where (A <=25000 and A>0) group by B,C,D,E,F,G,H
Few columns in this table(innodb type) are indexed and few have FK constraints. This query takes anything between 10 min to 20 min to complete. Removing FKs does speed up insert time but stillam running into similar issues. any help?