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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:24:06+00:00 2026-05-27T16:24:06+00:00

I’ve designed the database for the web-app i’m building by the book. That is,

  • 0

I’ve designed the database for the web-app i’m building “by the book”. That is, I’ve:

  • Created an E-R diagram containing the app’s entities, attributes, and relationships
  • Translated the E-R diagram in to a schema
  • Translated the schema in to a “no-schema” form to model the database with (the database is a Cassandra (NoSQL) database).

Everything is going well (so far). I’ve denormalized before with great results, and am curently implementing a part of the app which will use data that hasn’t been denormalized yet. Doing so for this particular part will, I predict, increase performance somewhat substantially (reading from 1 Column_Family (“table” in the relational world) instead of 7).

However, I fear that I may be denormalizing too much. If I were to to do so for the part in question, it would pretty much reduce the Column_Family/table count in my app by about 20%, and having that much of my database denormalized makes me nervous for some reason.

Should the app end up being enough of a success that I’m able to get a database designer or administrator on board, I’d like for him to be able determine that the denormalization I’m performing is necessary for the performance i’m seeking (best-case) or at the very least not harmful (worst-case).

Are there specific things I should look out for when making denormalization decisions that may indicate whether doing so would be bad, or does it always come down to speed vs. maintainability?

  • 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-27T16:24:07+00:00Added an answer on May 27, 2026 at 4:24 pm

    Designing a schema for cassandra is very different than designing a schema for a sql database. With a sql database your data fits on one machine, the database will maintain indexes for you, you can perform joins, and you can do complex queries with sql. These all make normalizing data practical.

    In cassandra you data does not fit on one machine so you can’t perform joins, the only query you can do efficiently is get a range of columns on a key, and cassandra will only maintain limited indexes for you. This makes normalizing your data impractical.

    In cassandra, you typically design your schema to serve the queries that you are going to make, and you denormalize to do that. My favorite example of this is what twitter does for their stats for rainbird as explained in this post,

    For example, say someone clicks on a t.co link to blog.example.com/foo at 11:41am on 1st Feb. 
    Rainbird would increment counters for:
    
     t.co click: com (all time)
     t.co click: com.example (all time)
     t.co click: com.example.blog (all time)
     t.co click: com.example.blog /foo (all time)
     t.co click: com (1st Feb 2011)
     t.co click: com.example (1st Feb 2011)
     t.co click: com.example.blog (1st Feb 2011)
     t.co click: com.example.blog /foo (1st Feb 2011)
     t.co click: com (11am-12 on 1st Feb)
     t.co click: com.example (11am-12 on 1st Feb)
     t.co click: com.example.blog (11am-12 on 1st Feb)
     t.co click: com.example.blog /foo (11am-12 on 1st Feb)
     t.co click: com (11:41-42 on 1st Feb)
     t.co click: com.example (11:41-42 on 1st Feb)
     t.co click: com.example.blog (11:41-42 on 1st Feb)
     t.co click: com.example.blog /foo (11:41-42 on 1st Feb)
    

    This 1 click is copied 16 times to satisfy the 16 queries that can be done.

    This is a good presentation on how to do indexing in cassandra.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

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.