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
The maximum number of requests (30) allowed for this session has been reached
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
 
lunarjetset  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 5:08 pm
From: lunarjetset <pete.nel...@workfu.com>
Date: Wed, 30 May 2012 14:08:47 -0700 (PDT)
Local: Wed, May 30 2012 5:08 pm
Subject: The maximum number of requests (30) allowed for this session has been reached

I believe I'm doing everything right with my session so I'm not totally
sure why I'm getting this error.

I open a session , do a number of operations and once complete I call
SaveChanges - I am only calling SaveChanges once.

My concern is that perhaps this is an issue with my architecture: I have a
Windows Service that is consuming from a RabbitMQ Queue inside a class that
exists for the lifetime of the service.  When a message arrives it calls a
handler method which opens the session and saves stuff.

I declare a private DocumentStore at the top of that class - does this all
make sense - as there is only one instance of the class that runs the
DocumentStore there must be only one DocumentStore right?  Or should I be
ensuring it's a singleton somehow?

Thanks very much,
Pete


 
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.
lunarjetset  
View profile  
 More options May 30 2012, 5:15 pm
From: lunarjetset <pete.nel...@workfu.com>
Date: Wed, 30 May 2012 14:15:09 -0700 (PDT)
Local: Wed, May 30 2012 5:15 pm
Subject: Re: The maximum number of requests (30) allowed for this session has been reached

Windows Service -> instantiates an App instance in the OnStart of the
service.
App constructor calls docStore.Initialize(); on a private DocumentStore

RabbitMQ calls a hander method in App and this performs operations on the
class variable DocumentSTore

Is this all safe?


 
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.
lunarjetset  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 5:17 pm
From: lunarjetset <pete.nel...@workfu.com>
Date: Wed, 30 May 2012 14:17:40 -0700 (PDT)
Local: Wed, May 30 2012 5:17 pm
Subject: Re: The maximum number of requests (30) allowed for this session has been reached

the only other possibility that is wrong is this - there are many petes
here:

petes.ForEach(session.Store);

                        foreach (var pete in petes)
                        {

session.Advanced.GetMetadataFor(opp)["Raven-Expiration-Date"] = new
RavenJValue(pete.Expires);
                        }


 
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.
Chris Marisic  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 5:20 pm
From: Chris Marisic <ch...@marisic.com>
Date: Wed, 30 May 2012 14:20:20 -0700 (PDT)
Local: Wed, May 30 2012 5:20 pm
Subject: Re: The maximum number of requests (30) allowed for this session has been reached

Where do you create the session and where do you call savechanges?

Can you provide some more information about the infrastructural code you
have around this?


 
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.
lunarjetset  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 6:28 pm
From: lunarjetset <pete.nel...@workfu.com>
Date: Wed, 30 May 2012 15:28:42 -0700 (PDT)
Local: Wed, May 30 2012 6:28 pm
Subject: Re: The maximum number of requests (30) allowed for this session has been reached

I'm thinking this was actually around a Load NOT a Save -this was my
mistake sorry.  I was calling load too many times in a foreach so I have
changed to batch load and I hope this will solve all woes,
thansk
Pete


 
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.
Oren Eini (Ayende Rahien)  
View profile   Translate to Translated (View Original)
 More options May 31 2012, 5:28 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Thu, 31 May 2012 12:28:51 +0300
Local: Thurs, May 31 2012 5:28 am
Subject: Re: [RavenDB] Re: The maximum number of requests (30) allowed for this session has been reached

Yes, you are probably _reading_ data in a loop.
That is far more common than saving in a loop


 
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.
Pete Nelson  
View profile   Translate to Translated (View Original)
 More options May 31 2012, 6:21 am
From: Pete Nelson <pete.nel...@workfu.com>
Date: Thu, 31 May 2012 11:21:51 +0100
Local: Thurs, May 31 2012 6:21 am
Subject: Re: [RavenDB] Re: The maximum number of requests (30) allowed for this session has been reached
Thanks - you are right - all sorted now!

 
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 »