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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:42:14+00:00 2026-05-27T13:42:14+00:00

Does the action of getting data from mongo a blocking operation in node (if

  • 0

Does the action of getting data from mongo a blocking operation in node (if done incorrectly ?). What is the best way to make a query and also what should i avoid.I am using mongoosejs.

  • 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-27T13:42:15+00:00Added an answer on May 27, 2026 at 1:42 pm

    Andrei, Node makes synchronous & blocking stuff really hard to do, so don’t worry so much. I advise you read the official documentation from Mongoose and then take a look at the Nodepad application developed by Alex Young.

    The tutorials for that application can be found here: http://dailyjs.com/tags.html#nodepad

    Also in general, Mongoose & Node code usually look like this:

    database.query(conditions, function(error, data) {
      if (error) { throw error; return; }
      // do stuff with your data here
    });
    

    Other useful resources:

    Is there any good MongooseDB Tutorial / example website?
    Video presentations on Node.js & MongoDB from 10gen’s official website: http://www.10gen.com/presentations#programming_lang__javascript_nodejs
    http://nodenerd.net/post/4926637100/quick-hit-mongoose-js
    http://blog.mongodb.org/post/6587009156/cloudfoundry-mongodb-and-nodejs

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

Sidebar

Related Questions

any time i write this: $this->setTemplate('module/action'); I'm getting this error: The template module/actionSuccess.php does
How does one find out which controller or which action they are in from
My main application does this: It retrievs data from the internet and has 3
I am getting a new php warning when a POST data from a form
When a compiler finds a signed / unsigned mismatch, what action does it take?
What does the SQL Action keyword do? Can I use this keyword in a
I have a problem with Jquery function getJSON, the action url does not trigger
So I read MSDN and Stack Overflow. I understand what the Action Delegate does
Does anyone know how to implement an action badge, like the ones seen below
DTF does not call the second action if the custom action assembly has more

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.