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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:18:30+00:00 2026-06-15T12:18:30+00:00

Keys are long hashes so dataset won’t fit into the ram. It is not

  • 0

Keys are long hashes so dataset won’t fit into the ram. It is not that big: 10-20Gb yet storing it in RAM is too costly for me. I have 100-1000 queries per second asking whether key exists and occasional 1-10 inserts. For a while I’ve been using mongo but it seems it is not up to the task since it lacks ability to control which indexes are stored into ram and which are not, so it hits hard disk quite often.

I would gladly use redis or something similar but ram is the bottleneck.

  • 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-15T12:18:31+00:00Added an answer on June 15, 2026 at 12:18 pm

    Hash your keys and put them into either a relational table or into a hash-table. That is the easiest solution. Next would be the use of Bloom filters which would be able to sort 99% or even more of the accesses out (in case the key is not present – in case it is there you don’t gain anything because it could be a false positive).

    Not sure why your hashes are that long. What hashing technique are you using? You might want to switch to something like SHA-160 which has a small output yet is (almost) cryptographically secure.

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

Sidebar

Related Questions

I'm building a commenting mechanism into an application that allows a programmer/plugin author to
As per subject: what are the characters that can be used in hash keys
We are having a rather long discussion in our company about whether or not
Long time lurker, first time poster. I have a page that can dynamically (with
I've always preferred to use long integers as primary keys in databases, for simplicity
I can set UIColor objects as keys in an NSMutableDictionary all day long and
I hope I'm not being too long winded in this question, I just want
Ok, long story short I have a Windows service that handles Win32_VolumeChangeEvent and logs
I have two keys for class A { @Id long key1; @Id long key2;
I have an array of hashes, each hash has two keys : from and

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.