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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:49:03+00:00 2026-05-13T09:49:03+00:00

I can see myself using Project Voldermort to cache results from a Traditional RDBMS

  • 0

I can see myself using Project Voldermort to cache results from a Traditional RDBMS query. But in this case, it provides almost no major advantage over other (Java) caching system such as EHcache Jcache etc.

Where else could I use Project Voldermort or similar Key Value stores ? How are you using this in your business applications ?

  • 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-13T09:49:04+00:00Added an answer on May 13, 2026 at 9:49 am

    One approach to improving the speed of your database is to denormalize. Take this MySQL example:

    CREATE TABLE `users` (
        `user_id` INT NOT NULL AUTO_INCREMENT,
        … -- Additional user data
        PRIMARY KEY (`user_id`)
    );
    
    
    CREATE TABLE `roles` (
        `role_id` INT NOT NULL AUTO_INCREMENT,
        `name` VARCHAR(64),
        PRIMARY KEY (`role_id`)
    );
    
    
    CREATE TABLE `users_roles` (
        `user_id` INT NOT NULL,
        `role_id` INT NOT NULL,
        PRIMARY KEY (`user_id`, `role_id`)
    );
    

    Neat, tidy, normalized. But if you want to get users and their roles, the query is complex:

    SELECT u.*, r.*
      FROM `users` u
      LEFT JOIN `user_roles` ur ON u.`user_id` = ur.`user_id`
      JOIN `roles` r ON ur.`role_id` = r.`role_id`;
    

    If you denormalized this, it might look something like:

    CREATE TABLE `users` (
        `user_id` INT NOT NULL AUTO_INCREMENT,
        `role` VARCHAR(64),
        … -- Additional user data
        PRIMARY KEY (`user_id`)
    );
    

    And the equivalent query would be:

    SELECT * FROM `users`;
    

    This improves some of the performance characteristics of your queries:

    1. Because the result you want is already in a table, you don’t have to perform read-side calculations. e.g. if you wanted to see the number of users with a given role, you’d need a GROUP BY and COUNT. If it were denormalized, you would store it in a different table devoted to holding roles and counts of users who have that role.
    2. The data you want is in the same place, and hopefully in the same place on disk. Rather than requiring many random seeks, you can do one to a few sequential reads.

    NoSQL DBs are highly optimized for these cases, where you want to access a mostly-static sequential dataset. At that point, it’s just moving bytes from disk to the network. Less work, less overhead, more speed. Despite how simple this sounds, it’s possible to model your data and application so it feels natural.

    The trade-off for this performance is write load, disk space, and some app complexity. Denormalizing your data means more copies, which means more disk space and write load. Essentially, you have one dataset per query. Because you shift the burden of those computations to write-time instead of read-time, you really need some sort of asynchronous mechanism to do that, hence some app complexity.

    And because you have to store more copies, you have to perform more writes. This is why you can’t practically replicate this kind of architecture with a SQL database – it’s extremely difficult to scale writes.

    In my experience, the trade-off is well worth it for a large-scale application. If you’d like to read a bit more about a practical application of Cassandra, I wrote this piece a few months ago, and you might find it helpful.

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

Sidebar

Related Questions

No related questions found

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.