Remote Network And System Administration Job In IT And Networking

MySQL Optimization

Find more Network And System Administration remote jobs posted recently Worldwide

Hello,
We have an online shop that uses the salesrule table to store salesrules (discounts). A salesrule can be applied automatically or with a coupon code (salesrule_coupon). It can be assigned to one or more websites (core_website, relation table is salesrule_website).
This online shop uses the same database and tables for more than 20 websites we have (core_website).

The problem is that the query (attached) takes 3-10 seconds on the live server.

(4 million entries in salesrule_coupon and 1000 in salesrule table on the live server)

So this database should be optimized. My suggestion would be to check if there is any potential of adding indices.
Maybe we could also split the tables so we have one salesrule and salesrule_coupon table per website. The structure of the tables should not change for the administration, so we need still all salesrules in one table. Maybe we could create a trigger that would reflect any change of salesrule and salesrule_coupon in the websites table salesrule_website_1 and salesrule_coupon_website_1 etc.
If trigger is not possible maybe we could consider adding partitioning.
About the recuiter
Member since May 20, 2018
Fendy Setiawan
from Alagoas, Brazil

Candidate shortlisted and hiredHiring open till - Jul 7, 2024

Work from Anywhere

40 hrs / week

Hourly Type

Remote Job

$19.10

Cost

Looking for help? Checkout our video tutorial
How to search and apply for jobs

How to apply? Do you have more questions about the Job?
See frequently asked questions

Similar Projects

SuiteCRM Notes Issue

I have a suitecrm installation.

We have it loaded in Ubuntu 18.04 and using Virtualmin and WebMin. Suitecrm is running on a VM.

We have notes stored in the CRM and some records are missing the files that were uploaded and some are...read more

SQL expert needed for financial reporting project

My company is a financial services firm in the business of issuing asset backed securities. Im looking for a SQL expert that can help create variables within SQL Queries (I believe this is called dynamic SQL) to create a user friendly report.

Senior Data Architect

We are looking for an experienced Sr. Data Architect to help us
create a next-generation automation platform. You will be responsible for:

- Creating and optimizing information schemas to support business objectives
- Designing and p...read more

SAP Business Objects Consultant/Administration

We are looking for an outside consultant to come in and add a second set of eyes through the lens of an SAP Business Objects Administrator/Architect. This would warrant a full health & configuration check of SAP Business Objects - including the syst...read more

I need experienced DevOps person to manage AWS server for a high traffic website.

We have a website which has more than 1 million visitors per month. Currently the website is hosted on Amazon AWS server and we are looking for a DevOps person to manage the server tasks for us. Please share your previous experience in this domain.