Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have records in file with some delimitor. My front end is in PHP. Presently i have build logic in front end which reads data from file row wise, column wise and then insert the same in SQL database.

Till some extent the above logic is working, but when my data is increasing, my process is getting slow.

I wanted to do all processing at SQL level.

How can i achieve this task as i am bit new to PHP.


Thanks in advance.

Cheers
Posted
Comments
Mohibur Rashid 9-Jul-14 5:35am    
Excel is slow, if it get bigger it will get slower too. I have to process lots of excel file. I just convert the file to csv. I use Open Office application to convert to csv. Because it allows me to choose encoding type,
Magic Wonder 9-Jul-14 6:32am    
I have flat file .
CHill60 9-Jul-14 8:39am    
"lets talk like a computer programmer" ... :laugh: "flat file" is a programming term that has been around for many, many years! :)
Magic Wonder 9-Jul-14 9:11am    
ha ha ha....let me re - put my words with correction. I have a file in CSV format.
CHill60 9-Jul-14 8:44am    
A little confusing as you say you "wanted to do all processing at SQL level" - does that mean SSIS is not an option for you?
Do you have any indexes on the table(s) you are importing to?

1 solution

Writing a front end logic to upload the file will take time as the data in the file increases. Becuase it is talking between 2 different languages SQL and PHP.
I would advise to script a SSIS package in SQL to run upload faster.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900