vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi i am having performance problem whenever i merge some tables by following query it takes too much time. create table tblusersurfingdetail as select * from tblusersurfingdetail200507 union select * from tblusersurfingdetail200506 union select * from tblusersurfingdetail200505; It takes about 220 Secs. to merge these tables. I have tried one alternative with copy command. copy tblusersurfingdetail200507 to '/var/csvs/tblusersurfingdetail200507records.csv' with csv; copy tblusersurfingdetail200506 to '/var/csvs/tblusersurfingdetail200506records.csv' with csv; copy tblusersurfingdetail200505 to '/var/csvs/tblusersurfingdetail200505records.csv' with csv; copy tblusersurfingdetail from '/var/csvs/tblusersurfingdetail200507records.csv' with csv; copy tblusersurfingdetail from '/var/csvs/tblusersurfingdetail200506records.csv' with csv; copy tblusersurfingdetail from '/var/csvs/tblusersurfingdetail200505records.csv' with csv; It takes 143 Secs. When i import and export with binary option in copy command it takes 118 Secs. These 3 tables contains more than 12 lakhs records. |
| Thread Tools | |
| Display Modes | |
|
|