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 6646973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:28:56+00:00 2026-05-26T00:28:56+00:00

A quick bit of background – We have a table orders which has about

  • 0

A quick bit of background – We have a table “orders” which has about 10k records written into it per day. This is the most queried table in the database. To keep the table small we plan to move the records written into it a week or so ago into a different table. This will be done by an automated job. While we understand it would make sense to pop the history off to a separate server we currently just have a single DB server.

The orders table is in databaseA. Following are the approaches we are considering:

  1. Create a new schema databaseB and create an orders table that contains the history?
  2. Create a table ordershistory in databaseA.

It would be great if we could get pointers as to which design would give a better performance?

EDIT:

Better performance for

  1. Querying the current orders – since its not weighed down by the past data
  2. Querying the history
  • 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-26T00:28:57+00:00Added an answer on May 26, 2026 at 12:28 am

    I take it from your question that you only want to deal with current orders.

    In the past, have used 3 tables on busy sites

    new orders,
    processing orders,
    filled orders,

    and a main orders table

    orders

    All these tables have a relation to the orders table and a primary key.

    eg new_orders_id, orders_id
    processing_orders_id, orders_id ….

    using a left join to find new and processing orders should be relatively efficient

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

Sidebar

Related Questions

I have a quick question about the difference between the 32 and 64 bit
So I've written a quick bit of code to help quickly convert between business
Hey guys, I have this quick bit of code that I can't figure out
I have a quick question. I've been playing around with bit manipulation in c/c++
I have a quick question - is there a best practice in SQL Table
Quick question about Ruby forking - I ran across a bit of forking code
Quick question I currently have a small bit of code that is pulling comments
I was just having a quick read through this article (specifically the bit about
Quick background of what I have going on. UIMapView loads and shows a single
Quick question. I'm in a bit of a rush but if someone could quickly

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.