Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4031848
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:38:54+00:00 2026-05-20T11:38:54+00:00

I recently started working for a fairly small business, which runs a small website.

  • 0

I recently started working for a fairly small business, which runs a small website. I over heard a co worker mention that either our site or MySQL databases get hit ~87 times a second.

I was also tasked today, with reorganizing some tables in these databases. I have been taught in school that good database design dictates that to represent a many-to-many relationship between two tables I should use a third table as a middle man of sorts. (This third table would contain the id of the two related rows in the two tables.)

Currently we use two separate databases, totalling to a little less than 40 tables, with no table having more than 1k rows. Right now, some PHP scripts use a third table to relate certain rows that has a third column that is used to store a string of comma separated ids if a row in one table relates to more than one row in some other table(s). So if they want to use an id from the third column they would have to get the string and separate it and get the proper id.

When I mentioned that we should switch to using the third table properly like good design dictates they said that it would cause too much overhead for such small tables, because they would have to use several join statements to get the data they wanted.

Finally, my question is would creating stored procedures for these joins mitigate the impact these joins would have on the system?

Thanks a bunch, sorry for the lengthy explanation!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:38:54+00:00Added an answer on May 20, 2026 at 11:38 am

    By the sound of things you should really try to redesign your database schema.

    two separate databases, totalling to a little less than 40 tables, with no table having more than 1k rows

    Sounds like it’s not properly normalized – or it has been far to aggressively normalized and would benefit from some polymorphism.

    comma separated ids

    Oh dear – surrogate keys – not intrinsically bad but often a sign of bad design.

    a third table to relate certain rows that has a third column that is used to store a string of comma separated ids

    So it’s a very long way from normalised – this is really bad.

    they said that it would cause too much overhead for such small tables

    Time to start polishing up your resume I think. Sounds like ‘they’ know very little about DBMS systems.

    But if you must persevere with this – its a lot easier to emulate a badly designed database from a well designed one (hint – use views) than vice versa. Redesign the database offline and compare the performance of tuned queries – it will run at least as fast. Add views to allow the old code to run unmodified and compare the amount of code you need to performa key operations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started working on a very large C++ project that, after completing
I've recently started working on a project that uses bazaar. I'm attempting to find
I have recently started working on a legacy application that has most of its
I'm working on a system that uses Jasper reports. Recently it started throwing this
I recently started working on a web project which was already in progress; the
Recently I have started working on a program that will monitor the packets of
I recently started working on a large complex application, and I've just been assigned
I recently started working in Java and was introduced to the wild and crazy
I recently started working at a company with an enormous enterprisey application. At my
I've only recently started working with asp.net and c#. Is there a standard practice

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.