Optimize PHP/MYSQL Export Script - PHP/MYSQL Expert Needed
$30-250 USD
Pagato alla consegna
I have an existing PHP export script that manipulates some data and then exports the data into a csv file.
The script exports a survey. Each survey typically has around 20 questions (the question vary slightly from survey to survey). Each survey can have around 5000 entrants. The way the questions and answers are stored is by record since the questions are different for each survey.
The problem is some exports take 45 minutes and fail (I need to run them via the command line to complete them).
The problem is the script seems to have been written inefficiently. Instead of the SQL being written to pull in all data in one pass (ie SELECT [url removed, login to view],max(if(field_id=97, field_value,' ')) as '#1', max(if(field_id=98, field_value,' ')) as '#2',,,,,,,,,
group by [url removed, login to view]) and then do some parsing (the actual SQL takes around 8 seconds to run and produce the 5000 entrant records inc column format) in the way I am thinking), it instead does something else in multiple passes and takes 45 minutes to produce csv file. What I am suggesting would need to be written so it is dynamic (every contest has different questions), but I think it would work.
I need a strong MYSQL and php coder to come up with a better script so it runs much faster.
Don't bid unless you have at least 10 positive feedback ratings.
Rif. progetto: #1381050
Info sul progetto
Assegnato a:
7 freelance hanno fatto un'offerta media di $159 per questo lavoro
I am pretty sure I can fix this for you. I would like to take a look at the database structure. Also, I need to know what is the size of the database.
can do it for you immediatly, have already done much job with php mysql and csv storing. please check pm. thanks
Sir, although I am new to freelancer, I am not new in programming. I have done a similar project in the past, see PM for details.