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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:42:33+00:00 2026-05-18T07:42:33+00:00

My Oracle database contains some simple, rarely-changed data (it takes about months or even

  • 0

My Oracle database contains some simple, rarely-changed data (it takes about months or even years for it to change). But it’s frequently accessed (hundred times/day). I think to continuously access it in database is expensive.

EDIT: I’m thinking about an alternative way to store this data, not in database, for example, store it in my app’s cache, but I’m really confused about data consistency.
How can I do this efficiently?

EDIT: my original question is quite too general. I want to explain it clearer:

I have a table that contains:

MinValue       MaxValue       PackageID
1                4             1
5                10            2
11               50            3

When the client send an request to our service, it will send the amount, then our service has to determine which package this request belong to. This depends on the amount, and may be changed due to business needs (as I mentioned before, it’s very rarely changed).

I use this query to do this:

select packageid from vmeet_temp where amount between minvalue and maxvalue

Yes, it does work. But since I’m an inexperienced programmer, I doubt that if there’s more efficient way to archive this.

So my question is: for our need, should we store this information in database, or not? If not, which solution to go?

  • 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-18T07:42:34+00:00Added an answer on May 18, 2026 at 7:42 am

    Store it in a table, and let the DBMS worry about it. It has caching and is good at making sure that frequently used data is stored in memory so it does not need to go to disk for it. If you really want to, you can load the data into your application – you run the (small) risk that the data will be stale. But generally, let the DBMS worry about it and it will get it right for you.

    If the table is only 10 rows, and the rows are modest in size (up to a few hundred bytes each), then the DBMS will probably not bother with using an index even if you create one – it knows that it will be simpler and more efficient to use the table directly. Even simple-minded optimizers manage that. Obviously, if you bludgeon it into using the index with misplaced hints, then you get to pay the performance penalty. If left to its own devices, it is unlikely the optimizer would use the index.

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

Sidebar

Related Questions

I'm using an Oracle database(10g) which contains a stored procedure called Foo. Foo takes
I am retrieving data from an Oracle database and binding the same to a
We have an Oracle database that contains IP addresses stored as decimal integers -
we have a table in an Oracle Database which contains a column with the
I have a table in an Oracle database that contains actions performed by users
(Database: Oracle 10G R2) It takes 1 minute to insert 100,000 records into a
I am looking for some advice. I have been developing for about 11 years
Sometimes my Oracle database on Windows gets hosed. How do I do a manual
I have an Oracle database backup file (.dmp) that was created with expdp .
I'm using an Oracle database with a collation different to my OS language. I'm

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.