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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:05:46+00:00 2026-05-19T02:05:46+00:00

I have this situation here. An auction system listing orders that are active (their

  • 0

I have this situation here.

  • An auction system listing orders that are “active” (their deadline didn’t occur yet)
  • There is a lot of orders so it is better to have a field “active” instead of listing them based on time queries

I’m not a database expert, just a user. What is the best way to implement this scenario ?

  • Do I have to manually check the “deadLine” field and change “active” status every once in a while ?
  • Is Mysql able to change the field automatically ?
  • How demanding are queries of type “select orders where “deadline” has passed “
  • Is it better to use boolean criterion or timestamp criterion for searching ? it’s like 0,05% active 9,95% passive entries

Finally I have to move old order entries to a different backup table. My point is make the table lightweight, because there could be many requests per second. I’m not sure how much load does it put on the database, whether it there is a difference between criterion like boolean and time for searching

  • 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-19T02:05:47+00:00Added an answer on May 19, 2026 at 2:05 am

    It sounds like you’re going to an awful lot of work to solve a problem there’s no evidence that you have. Especially if you’re going to be archiving older records off, why don’t you make sure that you can’t do the time-based searches before you create an entire system dedicated to maintaining a second column that performs the same function as the time column.

    If you do decide that you need to keep a separate list of active auctions consider doing it not with a special column (and largely wasted index) but rather by creating an active_auctions table that contains only the primary key column(s) from auctions. Add a row to this table for each auction that becomes active and delete it when it becomes inactive. JOIN this table to the main auction table for a list of currently active auctions.

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

Sidebar

Related Questions

This is often situation, but here is latest example: Companies have various contact data
Here is the situation. This small company I'm working with wants to have a
The situation is this: You have a Hibernate context with an object graph that
Here's my situation. I have a library that has a set of enums that
Here is the situation that I'm facing: I have two tables A and B.
So, I have this situation where I need to see if an object is
During coding I frequently encounter this situation: I have several objects ( ConcreteType1 ,
I know questions of this kind have been asked before, but my situation differs
I have somehow misconfigured fingers. This leads to a very annoying situation. I select
I have this code in jQuery, that I want to reimplement with the prototype

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.