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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:52:18+00:00 2026-06-10T12:52:18+00:00

I am newbie to mongodb (java). I need to execute list of commands(queries in

  • 0

I am newbie to mongodb (java).

I need to execute list of commands(queries in relational) by using something similar to procedures in relational db.

Is it possible in mongodb?

  • 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-10T12:52:19+00:00Added an answer on June 10, 2026 at 12:52 pm

    MongoDB has no real sense of stored procedures. It has server side functions however these functions:

    • Do not work with sharding
    • Are slow
    • Must be evaled (Dr. Evil)
    • Are only really designed to be used within Map Reduces to stop you from having to house mutiple copies of common code within many places.

    However you can achieve it with $where or evaling an actual function name within system.js. But then these actually don’t run “server-side”.

    Using a exec type command in your app to call the shell won’t be a good idea either. The script files you run in shell are as much client side as your own app so that’s just pointless.

    MongoDB also does not allow triggers however they are within the JIRA: https://jira.mongodb.org/browse/SERVER-124 but are not scheduled. You will need to place triggers on client side within your coding.

    queries in relational

    NoSQL is not relational. You might want to read up on how to design a proper schema for MongoDB, here is a starting point: http://www.mongodb.org/display/DOCS/Schema+Design. This will teach you the essence of MongoDB and how to choose the right structure.

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

Sidebar

Related Questions

Possible Duplicate: SQL view in mongodb I am newbie to mongodb (java). I need
I am newbie to mongodb. We can execute list of queries by specifying it
I am newbie to mongodb. I need to link two collections something like in
I am using mongodb with mongoid in rails3. I am newbie to all this.
I am newbie to mongodb. I need to do a query by joinin two
I am newbie to mongodb. I need to know how to retrieve a paricular
i am newbie to mongoDB ,as i start working with test application (ASP.Net) found
Newbie in testing. I generated a test case using Selenium, and then exported it
Newbie here programming my first app (having made several tutorial apps). I am using
Newbie Java question - On all the posts for Auto Scaling the Text view,

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.