Find Jobs
Hire Freelancers

Build a Website

$10-30 USD

Tamamlandı
İlan edilme: yaklaşık 8 yıl önce

$10-30 USD

Teslimde ödenir
So my hosting says I need to fix this issue to optimize my sites performance ​Here is the join query which causes significant performance issues and should be optimized or re-written and split into few simple queries: ​select *, count(distinct views.views_id) as ViewCount from campaigns left join views ON views.views_campaign_id = campaigns.campaigns_id left join rates on rates.rates_id = campaigns.campaigns_rates_id where campaigns.campaigns_budget_used_today < campaigns.campaigns_daily_budget and campaigns.campaigns_current_budget > 0 and campaigns.campaigns_approved = 1 and campaigns.campaigns_status = 0 and campaigns.campaigns_payment_accepted = 1 and campaigns_device = 1 or campaigns.campaigns_device = 0 and rates_location = '' or rates.rates_location IS NULL group by campaigns.campaigns_daily_budget having ViewCount <= campaigns.campaigns_ordered_views * 1000 order by campaigns.campaigns_daily_budget asc ​It is a complex query with joins, which does not use indexes for some of the used columns. As the result, MySQL server creates temporary tables, performs scan of lots of table rows, and takes seconds to complete, which is not normal. We have added indexes to the tables and columns used in the query​.​ However it can not fix the issue completely, and the query still takes a few seconds. The solution would be to rewrite the query, or replace it with a few simple select queries which use indexes.
Proje No: 10361683

Proje hakkında

4 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 8 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
Hi there, I am a currently studying Software Engineering in Pakistan. I know about SQL and MYSQL. But Right now i could not understand your query without seeing the entire Database and table. Kindly Sent me your entire database so i can find errors Please inbox me if you are willing to work with me. Waiting for your response. Thanks Kind Regards Web&GraphicExpert
$15 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
4 freelancer bu proje için ortalama $36 USD teklif veriyor
Kullanıcı Avatarı
Experienced programmer with more than 10 years of development experience here. I have handled production applications with various technologies like .NET, PHP, Classic ASP and many more using databases like MySQL, Microsoft SQL, Access and etc. Mentioned below are a few USPs for choosing me: 1. Well written codes with proper documentation 2. Highest possible code optimization 3. Quick support through email / skype / telephone 4. Daily / Weekly status reporting Let's solve your issue. Regards, Hardik Shah
$35 USD 0 gün içinde
4,8 (23 değerlendirme)
4,7
4,7
Kullanıcı Avatarı
Hi. It's no so complex query indeed. And I'm sure join is not a reason of slow query. There are many where conditions
$40 USD 1 gün içinde
4,9 (24 değerlendirme)
4,7
4,7
Kullanıcı Avatarı
A proposal has not yet been provided
$55 USD 6 gün içinde
4,1 (18 değerlendirme)
4,5
4,5

Müşteri hakkında

   PHILIPPINES bayrağı
balanga, Philippines
5,0
1
Nis 29, 2016 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.