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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:29:59+00:00 2026-05-27T00:29:59+00:00

I have a ‘black box’ application that gets a map of values as parameters,

  • 0

I have a ‘black box’ application that gets a map of values as parameters, performs heavy and long (up to 5s) calculations and generates single Result which can be persisted in a database.
All I know about that application is that:

  • Result is unique with respect to provided map af values
  • Argument is a String->String map with known maximun length for both
    key and value
  • Argument map is of variable length (from 2-3 up to 1000 entries or
    so)
  • The size of list of possible key values is around 1000

Sample arguments are:

Map: {'k1'->'a', 'k2'->'b'} 
Map: {'k1'->'a', 'k2'->'b', ... 'k100'->'zzz'}
Map: {'k1'->'x', 'k8'->'y'}
Map: {'k6'->'z'}

Each of the above will produce unique Result object.

Now imagine another service, which is built on top of that slow library, and which needs to go online and handle dozens of calculation requests per second.
This is impossible without caching of already calculated results.
My estimation of total number of possible cache size is somewhat around 100-500 millions of records, which leads me towards using RDBMS as cache storage.

As the result is uniquely identified by provided map, I could sort argument map by key and concatenate it into the string ‘k1:a:k2:b….’. That will definetely be the cache key, but:

  • Cache key will be huge, above key size limits for many RDBMS and
    require indexed CLOB’s
  • I will make no use of the fact that key values are limited in
    possible values.

What’d be your advice? Performance is my main concern here.

  • 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-27T00:30:00+00:00Added an answer on May 27, 2026 at 12:30 am

    Actually, this sounds more like a problem best solved by a key-value store or document database, not an RDBMS.

    Another possibility worth looking into is a caching server like memcached.

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

Sidebar

Related Questions

Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have a n-tire web application and search often times out after 30 secs. How
Have created simple Ajax enabled contact forms before that have around 12 fields -
Have a simple console app where user is asked for several values to input.
Have a LinqtoSql query that I now want to precompile. var unorderedc = from
Have been trying the whole day long and googled the **** out of the
Have looked so long for a library specialized in dealing with iPhone Accelerometer but
Have some data in a sybase image type column that I want to use
Have noticed issue while testing iphone app that if one quickly opens/dismisses a modal
have a table that dynamically generates text boxes in run time. I want to

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.