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 Sep 8, 2017
Mary Mckeown
from Minnesota, United States

Open for hiringApply before - Oct 20, 2024

Work from Anywhere

40 hrs / week

Hourly Type

Remote Job

$19.13

Cost

Offer to work on this project closes in 23 days!
Are you interested in this Opportunity?

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

mysql database issue

i need to find the file where i can put my mysql database password.

i provide the files on the ftp once job award.

Data Analyst - Mobile Games

Hi there! Are you a SQL expert with experience in mobile gaming industry? Are you able to ask smart questions and get your answers from data? If yes, we would love to talk to you!


About us:
Megarama is one of the top employers on To...read more

Create a calculator for my website using excel spreadsheet

Looking for someone that can convert my excel spreadsheet calculator into a good looking calculator that I can put on my website and my visitors can plug in their own numbers.

Database needed for Rental company to track return orders

Writing a program that works with QuickBooks and many of my workers can access it on the same time to enter information, many reports to be created

Online Business Registration Portal

IMPLEMENTATION OF AN ONLINE BUSINESS REGISTRATION AND LICENSING SYSTEM FOR THE MINISTRY OF TRADE