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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:49:33+00:00 2026-05-27T03:49:33+00:00

I want to build a webservice using mongodb and lithium. What is better: Store

  • 0

I want to build a webservice using mongodb and lithium. What is better:

  • Store the data of all the clients in one collection (e.g. all the transaction documents of multiple clients in one collection transactions)

  • Create multiple collections e.g. transactions_client1, transactions_client2 etc.

  • One db per client

the system must be scalable and must be easy to deploy

  • 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-27T03:49:33+00:00Added an answer on May 27, 2026 at 3:49 am

    To provide direction, one would have to know a lot more about what you want to achieve, exactly.

    However, I’d rule out option 2 (multiple collections) because I don’t really see any advantages of this approach: you’ll have to determine the collection name at run-time, it’s a bit more tricky to write your queries and there’s a hard limit on the number of collections you can have (roughly 1.5M collections with a 2GB namespace file)

    Option 1 can help to isolate clients and might improve security, but there’s still the risk of programming errors in selecting the database. Isolating that code is easy, however.

    Both of these options have the downside that you can’t query across all collections. However, you’ll always want to have access to some collections that are essentially shared across all clients (e.g. logs, stats, etc.) so you have the additional burden of separating these.

    That is why I’d usually go for option 1.

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

Sidebar

Related Questions

I want to build a RESTful WebService that's using JSON for externalizing resources. The
hello i build a webservice to communicate with the iPhone. i want to display
I want to build a python program that deletes all the photos from my
For a new project, we want to build a web service in Java using
I want to build a RESTful Web Service in Java, deployed using Jetty and
Basically I have 2 RESTful services: one build in Java and using Tomcat server,
I want to build a REST web service on app engine. Currently i have
We have build several web service based on .net. Now we want to create
I have a spring-based Web Service. I now want to build a sort of
i want build a photography app with effects . e.g. old images with brown

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.