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

  • SEARCH
  • Home
  • 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 8167801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:18:57+00:00 2026-06-06T20:18:57+00:00

I have a large table with around half a million rows which is taking

  • 0

I have a large table with around half a million rows which is taking a toll on the shared hosting server. I am suppose to break down this large table into 3-4 smaller tables as we have no other option in shared hosting environment. While breaking down, I will keep that large table as it is and will take out only a specific column which contains large amount of text and split it into smaller tables.
What I am looking for now is a solution wherein I have to do minimum changes to the PHP code and the table can be split into several ones as follows:

main_table

id | column1 | column2 | column3_just_pointer

smaller_table_1

id | main_table_id | column3

smaller_table_2

id | main_table_id | column3

smaller_table_3

id | main_table_id | column3

If MySQL has something like pointer that can point to column3 in smaller table on executing a select command: select id, column3_just_pointer from main_table, I can split the tables in above mentioned fashion and the front end PHP code does not need to be edited at all.
I hope I sounded clear. Does any one here have any idea as to if and how this can be achieved? Thank you for your time…

Please Note: views cannot be used as it will prevent me from creating multiple smaller tables.

  • 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-06-06T20:18:59+00:00Added an answer on June 6, 2026 at 8:18 pm

    I ended up totally partitioning the tables horizontally with names like smaller_table_1,smaller_table_2,etc and keeping a record of the starting and ending ids of each table in a separate table say ‘main_table’. New data is added only to the last table and when a table crosses 40000 rows, my application automatically creates a new table smaller_table_n and put the information of that new table into main_table.

    I had asked this question in March and till now – July, this setup as worked flawlessly in 3 of my websites and all my 3 hosts too are happy about the sites not taking up more resources on their server.

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

Sidebar

Related Questions

I have a really large table (around 32 columns and 1000+ rows) which I'm
I have a large table (between 74 and 88million rows) which is the middle
We have a large table (450 million rows containing 34 columns of numeric or
I have a pretty large table: 20+ million rows and I need to update
I have a table with around 6 million rows and has many columns with
I'm currently have around 100 rows in a table on my website, which include
I have a very large (millions of rows) SQL table which represents name-value pairs
I have a large table (~170 million rows, 2 nvarchar and 7 int columns)
I have a table with around 19 columns which contains reasonable large amount of
I have a large table (~1M rows now, soon ~10M) that has two ranked

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.