[google-appengine] Re: My memcache items are randomly removed?

2009-10-31 Thread Martin Trummer

the paragraph "When_to_Use_a_Memory_Cache" of the docu explains it
well:
http://bit.ly/3LMsR9

On Oct 30, 11:11 pm, loell  wrote:
> sorry to get back at this discussion so late,  but i have another
> question in relation to this behavior / operation,  so how would one
> effectively design a correct memcaching of data from the data store?
> is it just,
>
> evaluate all items in the memcache set, and if there is no "none" then
> OK.
> else repeat the GQL operation then reset all memcache items again in
> the memcache set.
>
> is this the only way?
>
> On Oct 28, 6:07 pm, "Nick Johnson (Google)" 
> wrote:
>
> > Hi loell,
>
> > Memcache is, as the name implies, a cache. Any key may be evicted at any
> > time, though frequently read keys will be evicted less often. You should not
> > design your app to rely on the persistence of memcache entries.
>
> > -Nick Johnson
>
> > On Tue, Oct 27, 2009 at 11:02 PM, loell  wrote:
>
> > > Currently I only cache roughly 349 items with the total size of only
> > > 2.9 KB.  which is more puzzling as it's just a single dot in the total
> > > memcache size quota of 10 MB :(
>
> > > I'm beginning to think that maybe this particular web app is sitting
> > > on an unstable part of the cloud?  I even don't have a cron Job or a
> > > task queue yet, that might affect memcache items.
>
> > > On Oct 28, 2:19 am, Wooble  wrote:
> > > > How much are you caching?  Items are removed from the cache when
> > > > you're storing too much (I don't believe there's a published limit,
> > > > but I've seen anecdotal claims of 10MB), with the least recently used
> > > > items evicted first.
>
> > > > On Oct 27, 1:56 pm, loell  wrote:
>
> > > > > additional info: the Items in question are still retrievable in just a
> > > > > couple of minutes, usually.  but after that,  it just returns none.
> > > > > while part of the items in that set is still retrievable and all other
> > > > > memcache sets are still intact.
>
> > > > > On Oct 28, 1:48 am, loell  wrote:
>
> > > > > > hi, being used to the development's server, handling of memcache, 
> > > > > > and
> > > > > > that memcache items stays as long as it can.  I'm really puzzled why
> > > > > > some of my items returns "None" while part of that particular
> > > memcache-
> > > > > > set is still retrievable on the production server.   is this normal?
>
> > --
> > Nick Johnson, Developer Programs Engineer, App Engine
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> > 368047
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Managing DeadlineExceededError within the taskqueue

2009-10-31 Thread Greg Tracy

no... i was using the wrong import.

thank you @djidjadji

On Oct 29, 7:16 pm, djidjadji  wrote:
> Did you include?
>
> from google.appengine.runtime import apiproxy_errors
>
> 2009/10/29 Greg Tracy :
>
>
>
> > I tried to use the apiproxy_errors version but GAE couldn't find it
> > during excecution...
>
> > File "/base/data/home/apps/apodemail/1.337377943281842397/main.py",
> > line 191, in post
> >    except apiproxy_errors.DeadlineExceededError:
> > NameError: global name 'apiproxy_errors' is not defined
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: The API call mail.Send() took too long to respond and was cancelled?

2009-10-31 Thread Greg Tracy


i hadn't tried that, but i did get it to work once i used the correct
import statement...

from google.appengine.runtime import apiproxy_errors



On Oct 29, 5:33 pm, Joshua Smith  wrote:
> Did you try catching all exceptions?
>
> except:
>   logging.exception("...
>
> On Oct 29, 2009, at 5:36 PM, Greg Tracy wrote:
>
>
>
> > To add to this problem is the fact that I can't adequately catch the
> > exception and avoid the re-queueing of the task. More on that here...
>
> >http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > On Oct 29, 2:17 pm, Joshua Smith  wrote:
> >> Well that's not cool.
>
> >> Task queue did the same thing: Threw an exception, even though it
> >> actually queued the task.  Perhaps Google is confused about what an
> >> exception is.
>
> >> Nick: How can I tell if the email was sent?  I'd hate to blast a  
> >> bunch
> >> of duplicate emails just because of some bogus error.
>
> >> Perhaps you should just increase the "Timeout" on this API to a limit
> >> that it can actually meet?
>
> >> -Joshua
>
> >> On Oct 29, 2009, at 2:32 PM, Greg Tracy wrote:
>
> >>> I'm seeing quite a few as well. Although I do find that the emails  
> >>> get
> >>> delivered regardless.
>
> >>> On Oct 29, 11:22 am, Joshua Smith  wrote:
>  We're getting a surprising number of these errors:
>
>  "The API call mail.Send() took too long to respond and was
>  cancelled."
>
>  This is happening, for example, when we send an email to three  
>  people
>  in the to: list.  Billing is enabled in my app.
>
>  Should I wrap the call to mail.send_mail with an a try/except/retry
>  loop?
>
>  -Joshua
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paranormal.Activity.2009.DVDSCR

2009-10-31 Thread Rodrigo Aliste P.
ha? nick johnson?

2009/10/31 . Paranormal 

>
>
> After a young, middle class couple moves into what seems like a typical 
> suburban "starter" tract house, they become increasingly disturbed by a 
> presence that may or may not be demonic, but is certainly most active in the 
> middle of the night. Especially when they sleep. Or try to.
>
>  More 
>
> >
>


-- 
Rodrigo Aliste P.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paranormal.Activity.2009.DVDSCR

2009-10-31 Thread Barry Hunter

Its Spam, the Google Groups are plagued with them of late.

The trick is they pretend to send from an email address, that is
obviouslly a member of the group. (of course only affects groups
allowing email submission)

Whats particully bad, in this case they fake  a google.com email
address, and looking in the header even has
(google.com: domain of transitioning ... does not designate
80.80.228.41 as permitted sender)

so they should be blockable!





On 31/10/2009, Rodrigo Aliste P.  wrote:
> ha? nick johnson?
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Filtering Performance Hit?

2009-10-31 Thread MajorProgamming

If I'm filtering on a Listproperty, and perform the same filter twice,
is there a performance hit?

q=q.filter('lp =','value1')
q=q.filter('lp =','value1')

Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Idempotence for Incoming Mail

2009-10-31 Thread MajorProgamming

What will the "mail handler" do if there is an error? Will it call it
again?

Is there any possibility of it calling the URL twice?

Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Filtering Performance Hit?

2009-10-31 Thread 风笑雪

Hi, you can read its code in google\appengine\ext\db\__init__.py,
about line 1850.

Filter() will do some check, then use
datastore._AddOrAppend(dictionary, key, value) to add a filter.
The dictionary object is a hashmap, so it won't take more datastore
time, only the checking time are wasted.

2009/11/1 MajorProgamming :
>
> If I'm filtering on a Listproperty, and perform the same filter twice,
> is there a performance hit?
>
> q=q.filter('lp =','value1')
> q=q.filter('lp =','value1')
>
> Thanks,
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---