Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Post your project for free and start receiving proposals from freelancers within minutes after publication!

SQL - оптимизация запроса Mysql

5 USD

Client does not wish to make a prepayment? Payment through Safe helps avoid potential fraud.
    1 proposal concealed
  • Vladislavs Sipov
    15 September 2020, 11:55 |
        SELECT ws_manager_repl_log.*, kst_cs_shopping.thread_id, kst_cs_shopping.stage, kst_cs_shopping.user_id
        
        FROM ws_manager_repl_log 
        LEFT JOIN kst_cs_shopping ON ws_manager_repl_log.thread_id = kst_cs_shopping.thread_id
        
        WHERE 
           kst_cs_shopping.stage != 'shoping' 
           AND ws_manager_repl_log.updated_at <= 1599982332
           AND ws_manager_repl_log.mark_as_removed IS NULL
        
        ORDER BY ws_manager_repl_log.updated_at DESC LIMIT 15 OFFSET 15
  • Profile deleted
    15 September 2020, 12:15 |

    Уточните, пожалуйста:

    1. тип СУБД и её версию
    2. хотя бы примерное количество записей в обеих таблицах.

  • Vladislavs Sipov
    15 September 2020, 12:18 |

    MYSQL, 50-60 тысяч записей. Всё на скриншотах есть.

  • Profile blocked
    16 September 2020, 17:38 |

    Проиндексируйте все поля в WHERE, уберите сортировку, если не критично, ограничте вывод полей (*), но думаю 1 сек не получится. Записей много.

    Если поможет напишите, сколько сек получилось.


Current freelance projects in the category Databases & SQL

Accounting, planning, and sales system for a mushroom farm

600 USD

Here is the complete, final text of the Technical Assignment (TA). It combines all your requirements: 16 chambers, 20 contractors, a schedule by days, accounting for containers, profitability calculation, and a mandatory division into three grades of mushrooms. You can fully…

Databases & SQLClient Management & CRM ∙ 1 day 7 hours back ∙ 51 proposals

External report 1C 8.3 — forecast of goods balances

22 USD

An external report (.erf) is needed for 1C:Enterprise 8.3 (configuration to be specified). What it should do: Extract product balances from the database Analyze sales history for the last 30 days Calculate the average sales rate for each product Determine how many days until the…

Databases & SQLClient Management & CRM ∙ 1 day 7 hours back ∙ 11 proposals

Web Application & Database Security Audit for Custom CRM — BaaS / Database-as-API Specialist (Penetr

Project Overview We operate a custom-built customer relationship management (CRM) platform that runs two service businesses on a single system. It is a modern JavaScript web application backed by a backend-as-a-service (BaaS) database and deployed on a serverless hosting…

Databases & SQLTesting & QA ∙ 1 day 20 hours back ∙ 9 proposals

Database synchronization

Synchronization of Microsoft Access programs and CRM SalesDrive. Data transfer from CRM to Microsoft Access in the first stage (changing the funnel status). Data transfer from Microsoft Access to CRM in the second stage (changing the status in the program).

Databases & SQL ∙ 2 days 2 hours back ∙ 11 proposals

Setting up a backup system and optimizing server infrastructure

Objective of the work: Ensure reliable data storage for the CRM system and application by implementing an automated backup system, as well as carry out a series of server improvements to enhance the stability, security, and performance of the infrastructure.

DevOpsDatabases & SQL ∙ 3 days back ∙ 24 proposals

Client
Vladislavs Sipov
Latvia Riga  140  0
Project published
5 years back
56 views