Find Jobs
Hire Freelancers

Combine Perl DBH Mysql Queries into one Query

$10-30 USD

Completed
Posted almost 8 years ago

$10-30 USD

Paid on delivery
The attached mysql queries are inside a while loop inside of a perl script using DBH. Instead of multiple queries, I would like them combined into one mysql query to lighten the server load when the script runs. (Two queries are acceptable if the bottom/last query can not be combined with the others)
Project ID: 10674477

About the project

6 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I'm one of the best Perl developers here that's why I'm sure you'll be impressed with my work. I can show you the right way to execute such queries (actually you need two things: placeholders and transactions). Thanks. Roman
$34 USD in 0 day
5.0 (228 reviews)
6.3
6.3
6 freelancers are bidding on average $34 USD for this job
User Avatar
Hello, expert Perl coder can get this job done as you want it. All queries can be combined into single one. Regards, Emil Emanouilov
$30 USD in 1 day
5.0 (30 reviews)
6.5
6.5
User Avatar
Let's go. Pretty simple query - yes I can do it in a single query, to be clear, a single INSERT/ $dbh->do. I will send you back a revised .cgi file when you have the milestone in place. Regards
$30 USD in 1 day
5.0 (39 reviews)
5.6
5.6
User Avatar
Hello! I have re-checked the provided script: it can be easily optimized (all mysql queries can be combined into 1 and it will significantly speed up the insert speed). Please see my profile for details about my qualification. I can start right now. Hope to hearing from you soon.
$30 USD in 1 day
4.9 (8 reviews)
3.9
3.9
User Avatar
Hi, my name is Brian and I've been a developer for more than 10 years. I can do this for you within a day.
$35 USD in 1 day
5.0 (1 review)
1.7
1.7
User Avatar
Hi I propose changing the $dbh->do statements to the following: 1. one $dbh->prepare statement for all the on order and till $dbh->do statements placed outside the file read loop. 2, one $stmt->execute statement in the file read loop. I suspect this is not the complete code because you mentioned it executes within a while loop which isn't present in the code you've delivered. Depending on the rest of the code and how this is called, it may be possible to open up the connection to the db outside the while loop and also do the $dbh->prepare statement outside the while loop thus reducing server load further. e.g. my $dbh->connect(...); my $stmt=$dbh->prepare(...); while (something) { enter file loop ... $stmt->execute(..) } Hope that makes sense to you. Please get back to me if you've any queries or what to go ahead with this proposal. I look forward to hearing from you. Kind regards Lesley Binks
$42 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Post Falls, United States
5.0
13
Payment method verified
Member since Jul 27, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.