Find Jobs
Hire Freelancers

SQL optimisation

$30-250 USD

Completed
Posted almost 11 years ago

$30-250 USD

Paid on delivery
Hi i need an optimization of this request, it's take 6 s now to get the result for 90000 rows. SELECT [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL] AS type_id, [login to view URL] AS type, X(location) AS lat, Y(location) AS lng, GLength(LineString(PointFromWKB(POINT(:lat, :lng)), PointFromWKB(location))) * 100 AS distance, [login to view URL], COUNT([login to view URL]) AS nb_messages FROM ( SELECT GLength(LineString(PointFromWKB(POINT(:lat, :lng)), PointFromWKB(location))) * 100 AS distance, [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL], t_item.type_id, [login to view URL] FROM t_item WHERE [login to view URL] = 'verified' AND 1 ORDER BY 1 ASC LIMIT 10 OFFSET 0 ) AS t_item LEFT JOIN t_item_type ON t_item.type_id = [login to view URL] LEFT JOIN t_item_message ON t_item_message.item_id = [login to view URL] GROUP BY [login to view URL] Parameters: Array ( [:lat] => 48.856614 [:lng] => 2.3522219000000177 ) regards
Project ID: 4617186

About the project

11 proposals
Remote project
Active 11 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
Hello, I'm a specialist in geospatial technologies and database management systems. I'll be happy to assist.
$74 USD in 2 days
5.0 (27 reviews)
5.9
5.9
11 freelancers are bidding on average $110 USD for this job
User Avatar
Let expert do this
$66 USD in 1 day
4.9 (99 reviews)
6.0
6.0
User Avatar
Hi senjy, I will get this working as fast as it can run. Please see details in PM.
$105 USD in 1 day
5.0 (41 reviews)
5.6
5.6
User Avatar
Hi, I'm ready to start this project. Best regards.
$155 USD in 3 days
5.0 (3 reviews)
3.9
3.9
User Avatar
Hello, I can help.
$111 USD in 2 days
5.0 (6 reviews)
3.3
3.3
User Avatar
You are using so many custom functions (like PointFromWKB) inside your SQL. Where are they defined? What database manager is? (Access? SQL Server? Oracle?) Try to create a VIEW from your main "table" (the inner select).
$166 USD in 3 days
5.0 (5 reviews)
2.8
2.8
User Avatar
Ready to start now..
$55 USD in 3 days
5.0 (3 reviews)
2.4
2.4
User Avatar
I can do this project.
$53 USD in 1 day
5.0 (1 review)
1.4
1.4
User Avatar
Dear Hiring Manager I have seen your post and I can work on its optimisation. Regards Mehreen Virani Skype:aleedexinc
$206 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Pleas check private message, for quick fix.
$60 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of FRANCE
suresnes, France
4.9
29
Member since Apr 7, 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.