[appengine-java] Transactions on entities in different entity groups ?

2011-09-27 Thread Santosh kumar
Hi, I want to know how to create/update the entities which are in different entity groups ? for ex: I want to update the *apple* and *carrot* entities in a transaction but those parents are not same. (Here i am in such a situation) Thanks in advance :) *S*antosh *K*umar *K*

[appengine-java] Re: GAE - Vote counting system

2011-09-27 Thread jeffrey_t_b
Many writes to the same object will lead to db failures. You really should consider sharding: http://code.google.com/appengine/articles/sharding_counters.html On Sep 26, 12:41 am, Peter Dev dev133...@gmail.com wrote: We are developing an application, where users can vote for many objects.

Re: [appengine-java] GAE - Vote counting system

2011-09-27 Thread Jeff Schnitzer
Have you looked into using pull queues combined with sharded counters? If you lease 1,000 tasks at a time you can probably condense writes considerably. There are several different sharding strategies you could take, even just one master set of shards each of which covers all items. 100 shards

Re: [appengine-java] File Upload

2011-09-27 Thread Stefanos Antaris
Why don't you use blobstore service?? http://code.google.com/appengine/docs/java/blobstore/overview.html On Mon, Sep 26, 2011 at 5:57 PM, Guilherme Souza souza.guilherm...@gmail.com wrote: Hey guys, i have a problem with uploading files at my project, i tried to use the library

[appengine-java] Google App Engine Internet Crawler

2011-09-27 Thread Rodel Ocampo
Good day Developers! Any idea on how to crawl the internet in Google App Engine - Java? My thesis requires me to search a book in the internet just using the book's ISBN. Thank you very much. :D -- You received this message because you are subscribed to the Google Groups Google App Engine for

[appengine-java] Re: Disable 'refresh' in a page

2011-09-27 Thread Drew Spencer
I agree with Mat. Just tell your users not to refresh or give them no reason to. They aren't stupid. It's like when a site prevents me right-clicking - I hate that site and never go back. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Cannot deploy for past several hours?

2011-09-27 Thread GeorgeS
I haven't been able to update one of my applications for the past several hours. I keep getting the error: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=xversion=22; 400 Bad Request Client Error (400) The request is invalid for an

[appengine-java] Re: GAE - Vote counting system

2011-09-27 Thread Peter Dev
Shared counter is cool and I use it... but if you have millions of objects I cannot imagine how to manage them. 1 000 000 obj x 100 shards = 10 000 000 counters 1. How to reset them to 0 in specified periods? 2. How to set the shared sum for each object to show top 100 objects? 3. Too much DB API

[appengine-java] Re: GAE - Vote counting system

2011-09-27 Thread Peter Dev
Sorry, 100 000 000 counters On Sep 27, 4:53 pm, Peter Dev dev133...@gmail.com wrote: Shared counter is cool and I use it... but if you have millions of objects I cannot imagine how to manage them.1 000 000obj x 100 shards =10 000 000counters 1. How to reset them to 0 in specified periods?

Re: [appengine-java] File Upload

2011-09-27 Thread Guilherme Souza
Thanks Stefanos, i'm reading the documentation now. It will do resolve my problems. Question done! 2011/9/27 Stefanos Antaris ssanta...@gmail.com Why don't you use blobstore service?? http://code.google.com/appengine/docs/java/blobstore/overview.html On Mon, Sep 26, 2011 at 5:57 PM,

[appengine-java] Memcache objects remain only 5 minutes

2011-09-27 Thread Peter Nees
My objects remain in the memcache only for about 5 minutes. I know that there is no guarantee about the caching period, but this seems abnormal. I've read that lack of memory could be the reason. The size of one object is about 50K, and I typically cache less as 50 objects. I have no flush

[appengine-java] SOAP-Samples and the Development Server

2011-09-27 Thread chris
Is it possible to run the soap-samples from within the development server? I changed the soap address location in the wsdl filt to soap:address location=http://localhost:/codelabex5part1/ but it doesn't work... -- You received this message because you are subscribed to the Google Groups

[appengine-java] Allowing the user to Change accounts

2011-09-27 Thread Jared Rodriguez
I would like to allow the user of my app engine application to switch accounts, for users that have multiple accounts and use the google multiple sign-ins turned on. I have tried using the UserServiceFactory.getUserService().createLogoutURL() and send them there, but that only seems to let them

Re: [appengine-java] Re: GAE - Vote counting system

2011-09-27 Thread Jeff Schnitzer
Yeah, messy. I'd use a backend for this. Possibly a set of backends if you need to shard the data for write volume. I'd use Memcache only to cache the count reads. The basic entity is just an id and a count. An increment request goes to a backend, which simply tracks the change. A batch

[appengine-java] Snapshots...

2011-09-27 Thread Daniel Viveiros
Hi all, What's the best way to take snapshots of the GAE's database in a way it's possible to backup/restore it if needed? Thanks, Daniel V. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to

[appengine-java] Re: Snapshots...

2011-09-27 Thread Didier Durand
Hi, I do personally scan each entity type via an ad hoc request and store each instance as entry in an xml file stored in the blobstore. You can then externalize it via download from another machine. Another possible way is to store you data on Amazon S3: you can then also store them 1 by 1 if

[appengine-java] Re: Snapshots...

2011-09-27 Thread Jose Montes de Oca
Hi Daniel, Take a look at our Bulkloader Tool: http://code.google.com/appengine/docs/python/tools/uploadingdata.html Here is a great post: http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/ Hope this helps your needs! Best, Jose Montes de Oca -- You received this