Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Parallel write/delete operations
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
OZAYAMA  
View profile  
 More options Oct 4 2012, 2:11 pm
From: OZAYAMA <markus.schneide...@googlemail.com>
Date: Thu, 4 Oct 2012 11:11:03 -0700 (PDT)
Local: Thurs, Oct 4 2012 2:11 pm
Subject: Parallel write/delete operations

Hi List,

I'm new to mongodb and I'm not sure if parallel write/delete operations on
one
collection can be a problem.

Use-Case:
---
There's a collection of the name 'message' and my program has two threads.
Thread 'A' adds continuously new documents to the collection 'message' and
thread 'B' removes old documents from the collection 'message' at the same
time.
Both threads access the same collection but they operate on different
documents.
Does mongodb manage this for me?

Maybe there are other concepts to handle this.

Thanks in advance.

Best Regards

OZ


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Octavian Covalschi  
View profile  
 More options Oct 4 2012, 2:21 pm
From: Octavian Covalschi <octavian.covals...@gmail.com>
Date: Thu, 4 Oct 2012 13:20:26 -0500
Local: Thurs, Oct 4 2012 2:20 pm
Subject: Re: [mongodb-user] Parallel write/delete operations

Have you seen this page?
http://www.mongodb.org/display/DOCS/How+does+concurrency+work

On Thu, Oct 4, 2012 at 1:11 PM, OZAYAMA
<markus.schneide...@googlemail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
मैं एक भारतीय बेवकूफ हूँ  
View profile  
 More options Oct 4 2012, 2:21 pm
From: "मैं एक भारतीय बेवकूफ हूँ" <iamanindianid...@googlemail.com>
Date: Thu, 04 Oct 2012 20:21:06 +0200
Local: Thurs, Oct 4 2012 2:21 pm
Subject: Re: [mongodb-user] Parallel write/delete operations
http://www.mongodb.org/display/DOCS/How+does+concurrency+work


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
OZAYAMA  
View profile  
 More options Oct 4 2012, 4:08 pm
From: OZAYAMA <markus.schneide...@googlemail.com>
Date: Thu, 4 Oct 2012 13:08:13 -0700 (PDT)
Local: Thurs, Oct 4 2012 4:08 pm
Subject: Re: [mongodb-user] Parallel write/delete operations

Hi,

thanks for the fast response. I've seen that page a couple of days ago so
it was a good reminder.
I'll take a look at the following presentation and try to understand what
concurrency means in the mongodb world.
https://speakerdeck.com/u/mongodb/p/mongosf-mongodb-concurrency-inter...

Thanks again.

-OZ

Am Donnerstag, 4. Oktober 2012 20:21:03 UTC+2 schrieb oct:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Octavian Covalschi  
View profile  
 More options Oct 4 2012, 5:00 pm
From: Octavian Covalschi <octavian.covals...@gmail.com>
Date: Thu, 4 Oct 2012 16:00:18 -0500
Local: Thurs, Oct 4 2012 5:00 pm
Subject: Re: [mongodb-user] Parallel write/delete operations

Are you trying to implement some kind of message queue?

On Thu, Oct 4, 2012 at 3:08 PM, OZAYAMA
<markus.schneide...@googlemail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
OZAYAMA  
View profile  
 More options Oct 5 2012, 2:04 am
From: OZAYAMA <markus.schneide...@googlemail.com>
Date: Thu, 4 Oct 2012 23:04:47 -0700 (PDT)
Local: Fri, Oct 5 2012 2:04 am
Subject: Re: [mongodb-user] Parallel write/delete operations

Yes, I'm using rabbitmq for that purpose - thanks for the hint.

-OZ


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
OZAYAMA  
View profile  
 More options Oct 5 2012, 8:56 am
From: OZAYAMA <markus.schneide...@googlemail.com>
Date: Fri, 5 Oct 2012 05:56:48 -0700 (PDT)
Local: Fri, Oct 5 2012 8:56 am
Subject: Re: [mongodb-user] Parallel write/delete operations

FYI,

I've inserted 1.000.000. documents in my 'message' collection and
a concurrent task has deleted the older ones. I've counted all messages
that came in and the number was exactly 1.000.000. So it seems that's
no problem for mongodb to handle concurrent accesses on one collection -
before this test this wasn't clear to me - lack of understanding on my side
;-)

Test Scenario
===

| Client | ===> | MyWebApp | ===> | RabbitMQ | ===> | MyWebApp | ==> |
MongoDB |

Prerequisites
===
MongoDB 2.0.4
Grails 2.0.4

-OZ

Am Freitag, 5. Oktober 2012 08:04:47 UTC+2 schrieb OZAYAMA:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »