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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:52:25+00:00 2026-06-15T02:52:25+00:00

I have recently started to work with RavenDB. Here’s a traditional example in relational

  • 0

I have recently started to work with RavenDB.

Here’s a traditional example in relational db:

EmployeeType

ID:1 TYPE:DEV
ID:2 TYPE:QA

Employee

NAME:FRED TYPEID:1
NAME:JACK TYPEID:2

From what I understand of RavenDB the type would be included with the employee:

Employee

NAME:FRED TYPE:DEV
NAME:JACK TYPE:QA

Would there then be a need for the EmployeeType table?

If not, if you were to display a drop down list of employee type, would you just select distinct(Type) from Employee?

If you were to do the above, how would you add a new employee type, without entering a new employee (or editing an existing one)? Or would you just keep a list in code somewhere?

And lastly, if the text for an employee type were changed, it seems like you would then need to update all the employee records. What if there are 100,000 employee records?

I’m new to Raven (document databases), so any insight to help me better grasp the different paradigm would be appreciated.

  • 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-15T02:52:26+00:00Added an answer on June 15, 2026 at 2:52 am

    Would there then be a need for the EmployeeType table?

    There would be to fulfill requirements of the next question. Also, this type of reference data could just be stored in a single document, not a document collection. You may also maintain a hard-coded list, bypassing a database all together.

    If not, if you were to display a drop down list of employee type,
    would you just select distinct(Type) from Employee?

    No. Select from an employee types document. Selecting distinct from an employees tables would tell you the types of employees on record, not the available employee types.

    And lastly, if the text for an employee type were changed, it seems
    like you would then need to update all the employee records. What if
    there are 100,000 employee records?

    You’re facing what is effectively a trade-off between relational databases and document databases. You have a few options. You can reference employee types from employee documents by an ID which points to an employee type document collection. In this way, you can change the employee type name in one place. However, the trade-off is that RavenDB will need to include (join) that two documents to return an employee with a type. The alternative is to avoid an employee type ID and store the type directly in the employee document and when names need to be change you would run an update across all documents. Take a look here from the RavenDB docs.

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

Sidebar

Related Questions

An application I have recently started work on has to register two dll's, because
I have started to work on maven project recently. The piece of code I
I have recently started work on an application that is already deployed to production.
I have recently started work on a large project in .net (C#) and I
I have recently started using automapper and it has work fine for me so
I have recently started applying for .Net jobs. I currently work in a sales
I have just recently started git-tfs bridge and seems to work fine for a
I have recently started work on an existing WordPress site. The theme on the
I have recently started learning Silverlight and can't figure out how make this work.
Recently I have started work on a multi-threaded console based application using VB.Net 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.