Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

233
Views
Tiempo de espera del cursor adaptable de MongoDB

Estoy buscando usar mongodb para un modelo pub-sub. Revisé diferentes artículos como http://tugdualgrall.blogspot.fr/2015/01/how-to-create-pubsub-application-with.html y https://jpaljasma.blogspot.com/2013/11/howto- mongodb-tailable-cursors-in-nodejs.html .

Tenía una pregunta sobre la opción numberOfRetries en el cursor . Si configuro la opción {'numberOfRetries': -1} , ¿esto garantizará que el cursor no se agote? Lo que significa que podré insertar cualquier documento nuevo en la colección limitada incluso si hubo una gran demora en agregar un documento a la colección.

Gracias.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede establecer un indicador de cursor , específicamente el indicador noCursorTimeout :

 let cursor = collection.find({}, ...).addCursorFlag('noCursorTimeout', true);
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!