Find Jobs
Hire Freelancers

Alter and Optimize sql query

$10-30 USD

Terminado
Publicado hace más de 10 años

$10-30 USD

Pagado a la entrega
I need someone to please change this SQL query to NOT use sub-query with IN, I need for this query to work faster. Attached find the data table we are working with. About 7 million rows. SELECT `MovieID`, COUNT(*) AS `Count` FROM `download` WHERE `UserID` IN ( SELECT `UserID` FROM `download` WHERE `MovieID` = 995 ) GROUP BY `MovieID` ORDER BY `Count` DESC if the freelancer can solve this on the spot it would be great
ID del proyecto: 5214866

Información sobre el proyecto

38 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hi I'm very interested helping you optimizing your sql query like I did before when we work together, I have more then 7 years of experience in SQL and database administration, modeling, and manipulating, please do not hesitate to check my portfolio, there is some samples of databases modeling and database administration manual. I've checked your requirement I can do this job in the deadline without a problem, because I've done many projects like this. Please award me the project and send me all other details about your query, so we can start asap. I'm available, and can start immediately. Looking forward to working with you. Thank you for your consideration. Regards
$30 USD en 0 día
4,6 (38 comentarios)
5,5
5,5
38 freelancers están ofertando un promedio de $22 USD por este trabajo
Avatar del usuario
Hi ready to start i had more than 5 year experience in the php , mysql , jquery etc,, so let me know your view Thanks
$33 USD en 3 días
4,8 (236 comentarios)
7,6
7,6
Avatar del usuario
Hi, This is Janos from Hungary - I'd like to help. Assuming you can run teamviewer I'm quite happy to connect up and do the modification in front of you while I talk you through it on skype. Also I'm happy to take a look at indexing and see if performance can be further improved in any way - although this may be something you've already been through. thanks & regards, Janos
$34 USD en 2 días
5,0 (80 comentarios)
7,6
7,6
Avatar del usuario
Hi, I can compact this query by using inner join instead of using embedded select. But I think that the real problem is the group by and order by. The columns that u group by, order by or put after the "where" must be indexed.
$14 USD en 3 días
5,0 (21 comentarios)
6,9
6,9
Avatar del usuario
hello,Ready to start from now.i will complete this job in 1 hour..contact asap me to start wrok from now
$10 USD en 1 día
4,8 (28 comentarios)
6,3
6,3
Avatar del usuario
More then 7 years of working experience in Telerik Open Access ORM, Entity FrameWork using Code First, Database First Approaches, ASP.NET, Window Service, Web Service, MVC 3.0, MVC 4.0, C#, VB.NET, SQL Server, Access, JQUERY, Fluent/UnObtrusive and JQuery Validation. I have good experience in trouble shooting Front End issues and Performance tuning of Sql Server Database
$10 USD en 0 día
4,9 (31 comentarios)
6,4
6,4
Avatar del usuario
Hi, You may make it 2 separate queries instead of sub query. Let me know in which language it is written. Thanks.
$25 USD en 0 día
4,8 (108 comentarios)
6,1
6,1
Avatar del usuario
Hi, I can help you improved performance to your sql command. It's very easy for me to fix. Please contact me and provide me the connection, then I will edit and you see result.. All regards
$25 USD en 0 día
5,0 (12 comentarios)
5,3
5,3
Avatar del usuario
SELECT `MovieID`, COUNT(*) AS `Count` FROM `download` D1 INNER JOIN `download` D2 ON D1.`UserID` = D2.`UserID` AND D2.`MovieID` = 995 GROUP BY `MovieID` ORDER BY `Count` DESC Regards, Owner of http://sqlhint.com.
$14 USD en 3 días
5,0 (78 comentarios)
5,3
5,3
Avatar del usuario
Hello, I have experience in MySQL Query. i can try to optimize query using t.e.a.m.v.i.e.w.e.r. thanks Kalpesh
$29 USD en 1 día
5,0 (27 comentarios)
5,1
5,1
Avatar del usuario
Hi, First of all thanks for posting such a project. I am oracle certified developer and dba with more than 5 years of experience. I am expert in SQL, PL/SQL. I did lots of oracle project in freelancer. http://www.freelancer.com/u/nibiranijum.html I am confident on delivering quality. If you wish, I can show you my existing projects. Rgds, Shafiq
$30 USD en 3 días
4,9 (18 comentarios)
5,0
5,0
Avatar del usuario
Hi, Please try if the following work better. Because you did not attached your database so I could not test it myself SELECT `MovieID`, COUNT(UserID) AS `Count` FROM `download` left join `download` `filtered_download` on `download`.`UserID` = `filtered_download`.`UserID` and `filtered_download`.`MovieID` = 995 GROUP BY `MovieID` ORDER BY `Count` DES Regards,
$20 USD en 3 días
5,0 (9 comentarios)
5,0
5,0
Avatar del usuario
Hi. Here is redundant predikate with subquery (if you didn't mistake typing your query). Ready to help you with this project. Regards, Yuri.
$25 USD en 1 día
4,9 (32 comentarios)
4,5
4,5
Avatar del usuario
Hi this is bhargava. I am expert in sql and Pl/sql . your query is ready . can you please select my bid . i am ready to provide modified query .
$15 USD en 0 día
4,9 (29 comentarios)
4,2
4,2
Avatar del usuario
Hello, I quickly tried with a revised query (without subqueries) with a few test records and got the same results. I'll send you the query if you are OK with my bid. You can accept my proposal formally only if the query gives you the same results and is faster. I could not test the speed because it won't be much different with just a few test records. Please let me know. I tried it on SQL Server (I don't have mySQL) but there should not be much difference...you can give it a try. Please let me know. Regards, Swagata
$25 USD en 0 día
5,0 (5 comentarios)
3,2
3,2
Avatar del usuario
I already have solved your query to do not use sub query. Your query is to count how many copies of each movie was downloaded by each user that had downloaded this movie before? If that is correct, than I've done already. After initial milestone releasing I send you code to you test it in your application, then after your tests if everything is alright you release final milestone.
$30 USD en 1 día
5,0 (3 comentarios)
2,5
2,5
Avatar del usuario
Hello, i am very good in mysql and sql. I can do this job with ease. I can start solving immediately. I got one solution of it. Thanks.
$11 USD en 0 día
5,0 (4 comentarios)
1,3
1,3
Avatar del usuario
Think done write now. 3 years experienced developer with C#.Net , ASP.Net, PHP, MySQL, SQL and related web technologies. Thanks
$30 USD en 1 día
0,0 (0 comentarios)
2,8
2,8
Avatar del usuario
Hi Your query needs to changes 1. you are required to create index that update on cron so that query will no more require use of count 2. use inner or left join whichever is best suite to database design in query so that query will no more require use of subquery. Thanks Hitesh
$25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
A proposal has not yet been provided
$10 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
SELECT query1.`MovieID`, COUNT(*) AS `Count` FROM `download` AS query1 INNER JOIN FROM `download` AS query2 ON query1.`UserID` = query2.`UserID` WHERE query2.`MovieID` = 995 GROUP BY query1.`MovieID` ORDER BY `Count` DESC
$10 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de NEW ZEALAND
Te Awamutu, New Zealand
5,0
102
Forma de pago verificada
Miembro desde sept 9, 2012

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.