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!

Оптимизировать запросы к БД Опенкарт


    Another 3 proposals concealed
  • Bogdan Novik
    30 November 2020, 10:06 |

    Запросы с COUNT - подсчет товаров в категории, отключите в настройках подсчет товаров в категории для начала. Такие запросы оптимизировать выйдет врядли, можно просто части избежать. Добавьте индексы в базу

  • Andrii B
    30 November 2020, 15:56 |

    в админке подсчет отключен.

    на фронте, подсчет может и есть в категориях, т.к. там список подкатегорий формируется, есть в пагинации счетчик товаров на странице и всего в категории, мегафильтр, кнопка Показать еще. 

  • Roman Terentiev
    30 November 2020, 10:18 |

    Богдан, а добавить поле в базу и прописать функционал который будет пересчитывать каждый раз когда это нужно и потом просто читать это значение з бд? 

    Вопрос ли нужно это заказчику и захочет он за это оплатить это уже другой вопрос. 

  • Bogdan Novik
    30 November 2020, 10:21 |

    Да, этим вы будете обрекать магазин на постоянные допилы всех модулей, часть которых под кубом и эти доработки не пройдут. Подсчет количества работает нормально если все в порядке с кодом, 50к товаров не проблема. Но если в цикле производить подсчет категорий по 100 раз на странице - ясно, что дело будет долгое.

  • Bogdan Novik
    30 November 2020, 10:24 |

    Как костыль - можно кешировать счетчики

  • Profile blocked
    30 November 2020, 12:07 |

    Товаров много наверное ?


  • Andrii B
    30 November 2020, 15:56 |

    почти 70 т. 

  • Profile blocked
    30 November 2020, 16:10 |

    Попробуйте добавить индекс в базе для всех полей, во всех строках WHERE медленних запросов. Если не поможет - то наверно логику нужно менять.



Current freelance projects in the category Databases & SQL

Power BI

16 USD

The dashboard runs on a Google server, we need to transfer all logic + code Required skills: deployment of ETL processes on a Linux server + working with BigQuery and Postgre There is working code that runs on Google, where the database itself is, we need to transfer it to…

PythonDatabases & SQL ∙ 2 days 23 hours back ∙ 15 proposals

Need a 1C specialist for refinements and development.

I am looking for a 1C specialist for freelance collaboration. I am currently working with a contractor who provides support and maintenance for the 1C system. However, due to the contractor's workload, there is a need for prompt execution of additional tasks, improvements, and…

Databases & SQL ∙ 4 days 23 hours back ∙ 11 proposals

Restoring Instagram after a ban

On March 3, 2026, my Instagram was blocked due to a violation of rules. I believe there has been some mistake, as the page was personal with photos and videos of my personal trips. I did not post any comments anywhere. I have sent several appeals. I cannot download my files…

Databases & SQLWeb Programming ∙ 5 days 10 hours back ∙ 6 proposals

Eliminate the issue of incomplete data import from Excel files of Nova Poshta specifications into 1C:

45 USD

Goal: There is a processing in 1C for uploading the specifications of Nova Poshta. For unclear reasons, it has stopped loading some tabular data. We need to find the reason and eliminate the problem of incomplete data import from Excel files of Nova Poshta specifications into…

System & Network AdministrationDatabases & SQL ∙ 8 days 17 hours back ∙ 16 proposals

Accounting, planning, and sales system for a mushroom farm

601 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 ∙ 10 days 21 hours back ∙ 61 proposals

Client
Andrii B
Ukraine Ukraine  34  1
Project published
5 years back
77 views