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

  • Home
  • SEARCH
  • 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 6550363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:12:24+00:00 2026-05-25T12:12:24+00:00

I have looked and played around with RavenDb for a while and have started

  • 0

I have looked and played around with RavenDb for a while and have started to look at MultiTenancy. Ayendes sample for multitenancy looks like this:

using(var store = new DocumentStore
{
    Url = "http://localhost:8080"
}.Initialize())
{
    store.DatabaseCommands.EnsureDatabaseExists("Brisbane");

    store.DatabaseCommands.EnsureDatabaseExists("Melbroune");
    store.DatabaseCommands.EnsureDatabaseExists("Sidney");

    using (var documentSession = store.OpenSession("Brisbane"))
    {
        documentSession.Store(new { Name = "Ayende"});
        documentSession.SaveChanges();
    }
}

I don’t know how each database is stored and hence the question: Will that work for large applications with a lot of tenants?

  • 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-25T12:12:25+00:00Added an answer on May 25, 2026 at 12:12 pm

    See the first and last paragraphs from the docs (v2.5 | v3.0).

    RavenDB’s databases were designed with multi tenancy in mind, and are
    meant to support large number of databases on a single server. In
    order to do that, RavenDB will only keep the active databases open. If
    you access a database for the first time, that database will be opened
    and started, so the next request to that database wouldn’t have to pay
    the cost of opening the database. But if a database hasn’t been
    accessed for a while, RavenDB will cleanup all resources associated
    with the database and close it.

    That allows RavenDB to manage large numbers of databases, because at
    any given time, only the active databases are actually taking
    resources.

    So yes it will support it and each database will be stored in a separate folder on disk.

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

Sidebar

Related Questions

I started using PHP classes and looked into OOP. I played around by creating
Ok. I have looked around some tried to thread my UI to make this
Have looked quite hard for this answer but having no luck. I have 3
I have looked all around and only found solutions for python 2.6 and earlier,
Hobbyist Cocoa programmer here. Have been looking around all the usual places, but this
So, I have looked everywhere for a solution to this problem I have and
This has been a head-banger for me. I have looked at all of the
I've looked around a lot (trust me :) before posting this questions and I'm
I'm trying to build/implement a Flash video player to play videos. I have looked
I have looked and tried but don't see where I can stop some being

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.