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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:06:33+00:00 2026-06-06T06:06:33+00:00

1) As per datastax key cache stores the primary key index for rowkey. 2)

  • 0

1) As per datastax key cache stores the primary key index for rowkey.

2) In our case we have enough memory allocated for key cache and same key is present in multiple sstables with diffrent columns.

3) If no of calls are made to access all these same key from multiple sstables then how indexes are stored in key cache? will it store indexes for all the sstables OR just for the last sstable from which key is accessed recently?

  • 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-06T06:06:33+00:00Added an answer on June 6, 2026 at 6:06 am

    From Doc

    The key cache holds the location of keys in memory on a per-column
    family basis.

    Key cache serves as an index for a key in all sstables it is present.

    Key cache is maintained per sstable. Hence key cache can save one disk seek per SSTable [minimum]. Every key lookup ends up hitting atleast the bloom filter of all sstable. On success key cache is verified just to skip the sstable index [pointers to key sample @ interval of 127 by default] lookup.

    Read Path of cassandra goes like this

    Memtable -> Row Cache (Off heap) -> Bloom filter -> Key cache -> SSTable Index [if miss] -> Disk

    Everything in bold means they are maintained in memory (either in heap or off heap). Hence they don’t add up to disk seek

    Every sstable should be maintaining its own key cache. Souce from slide no 101 and Source2 from slide no 23

    Incase of key cache miss, sstable index is used – that will give the clue over which 128th range might the key lie. From then disk seek for key starts [can be 1 to many].

    I’ll update the answer once again if I get any clue on how does cassandra descide on key cache size of every sstable may be [key_cache_conf/no_of_sstables]?

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

Sidebar

Related Questions

Per MSDN , calling Type.GetMethods() stores reflected method information in a MemberInfo cache so
Per a great answer from another question I have begun mounting global resources (css/js/images)
per my client request I have been requested to return a dataset. basically it's
Per the Agile Development book, I have an Admin MVC that controls how users
Per the docs , this should be enough to run Twitter Bootstrap: <div class=carousel>
Per MSDN: A static constructor does not take access modifiers or have parameters. A
As per information i have, Aouth provides very stander plateform for authentication for accessing
Per this helpful article I have confirmed I have a connection pool leak in
Per a question I posted yesterday , our website's DNS structure has changed to
Per this article , I've tried to get myself in the habit of fetching

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.