Re: [google-appengine] Re: Moving Images from Datastore to Blobstore

2010-08-24 Thread Martin Ceperley
In that situation I would think that you would keep your Image class and add references to the blobstore instead of the actual blob. In my model I store the reference and pre-generate the image serving url, which you can append characters to to get various sizes: primary_image = blobstore.B

Re: [google-appengine] Re: Memcahce across different app versions using python and Java

2010-08-24 Thread Scott Ellis
I've starred your mail to keep an eye on it because it's an interesting question - but it is a rather uncommon situation. I'm thinking you might want to try stackoverflow? On 24 August 2010 13:31, salim wrote: > I'm overwhelmed by the activity of this group and how much I've been > inundated by

[google-appengine] Re: Moving Images from Datastore to Blobstore

2010-08-24 Thread Niklasro(.appspot)
Thanks for this info. I've referenced imaged like below. Can I too convert to blobstore somehow keeping the reference to model A? class A(GeoModel,search.SearchableModel): ... class Image(db.Model): reference=db.ReferenceProperty(Ad,collection_name='matched_images',verbose_name="Title") ... On

[google-appengine] Re: Are there any tool for viewing local db?

2010-08-24 Thread nischalshetty
@Jeff I've read somewhere about other alternatives of the datastore viewer (but they're most probably paid apps). You can google them and have a look. -Nischal On Aug 25, 12:52 am, Jeff Schwartz wrote: > Speaking of which, can we expect anytime soon that the local admin will > provide similar vi

[google-appengine] Re: Is data loss possible in App Engine datastore?

2010-08-24 Thread johnP
In a similar vein, is it possible for a query to mistakenly return a None? In the past year, I have had two or three instances when I lost data integrity, and believe it might be based on a mistaken query return. The situation is I have a Parent object and some Children objects. If a user wants

Re: [google-appengine] Is data loss possible in App Engine datastore?

2010-08-24 Thread Nick Johnson (Google)
Hi Vitaly, When a transaction commits, the data has been written to several disks in a single datacenter. Thus, no one hardware failure can cause data to be lost. Shortly thereafter, your data is replicated to other locations, providing security against anything that affects a whole location. In t

Re: [google-appengine] Re: Better way to implement many-to-many relationship

2010-08-24 Thread Eli Jones
Here is Brett Slatkin's IO talk from last year that starts off discussing ListProperty and why one might want to use it instead of a usual one-to-many model [though, it also points out that I don't know what I'm talking about :) since like Jeff mentioned, CPU is used up serializing, deserializing t

[google-appengine] Re: Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Saqib Ali
Thanks!! :) Just renamed the project from within Eclipse, performed the rollback successfully, and nothing broke! :) saqib On Aug 24, 2:00 pm, Robert Kluin wrote: > I do not use eclipse very often, but as I recall you can rename (or > move) the project through it.  Then it should handle updatin

Re: [google-appengine] Re: Better way to implement many-to-many relationship

2010-08-24 Thread Eli Jones
>From what I understand, I believe that in the datastore these two models are pretty much the same (I have to use python syntax since this is what I use): UserCommunityModel1(db.Model): Email = StringProperty(required=True) Communities = ListProperty(string,required=True) UserCommunityMod

Re: [google-appengine] Re: Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Robert Kluin
I do not use eclipse very often, but as I recall you can rename (or move) the project through it. Then it should handle updating all of your references etc Robert On Tue, Aug 24, 2010 at 16:19, Saqib Ali wrote: > Not sure if renaming to remove space will break something else. I use > e

[google-appengine] How do I use get_serving_url correctly?

2010-08-24 Thread Flips
Hi, how do I use get_serving_url correctly if I'd like to host a gallery of 28 pictures? I currently fetch all blob_keys and call 28 times the get_serving_url method to get my image urls. But this attempt is really slow (about 12 seconds). Would it be smarter to call get_serving_url if the blob ha

[google-appengine] Re: Better way to implement many-to-many relationship

2010-08-24 Thread skin
Thanks a lot Eli for sharing your thoughts on this. So what you are suggesting is that I can do with just List communitiesJoined in User class. I need not have a mapping of users enrolled in community in Community class. And whenever i need to retrieve the list of users in a community, I should

[google-appengine] Re: Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Saqib Ali
Not sure if renaming to remove space will break something else. I use eclipse. Any thoughts? On Aug 24, 12:42 pm, Robert Kluin wrote: > On Tue, Aug 24, 2010 at 13:40, Saqib Ali wrote: > > I am trying to use the appcfg.sh in the GAE Java SDK to rollback a > > stuck (in progress) deployment. How

[google-appengine] Re: Better way to implement many-to-many relationship

2010-08-24 Thread skin
Thanks Jeff ! I understand what you are trying to explain in this post, it is pretty much same as the Second way in my query above. Can you please explain me your last statement about counters. "As for counters, they would be implemented via a separate sub system as counters and memberships cann

Re: [google-appengine] Better way to implement many-to-many relationship

2010-08-24 Thread Eli Jones
Jeff, I agree with you that it is might not be very good to have a model mapping Community to a ListProperty of Users (since you'd get potential contention on popular communities that many people were joining at the same time and you will eventually run into the problem of having more than 5,000 u

Re: [google-appengine] Problem to access Administration Console in Google App Engine

2010-08-24 Thread Robert Kluin
try to log in at: https://appengine.google.com/a/live.it On Tue, Aug 24, 2010 at 06:25, Emiliano wrote: > hi all ! > > i'm registered correctly  to google app engine with my account and > i've already uploaded 3 application ...but the PROBLEM is to access to > the ADMINISTRATION CONSOLE:.. > >

Re: [google-appengine] Re: Are there any tool for viewing local db?

2010-08-24 Thread Jeff Schwartz
Speaking of which, can we expect anytime soon that the local admin will provide similar viewing and updating capabilities as production? Not being able to view unindexed entity properties and not being able to edit entities really reduces the utility of it. Jeff On Tue, Aug 24, 2010 at 3:26 PM, n

Re: [google-appengine] Better way to implement many-to-many relationship

2010-08-24 Thread Jeff Schwartz
See my previous response about list properties. But yes, you could use them but then you'd have to shard them to reduce the opportunity of contention on updates. And the entities containing the list properties should be child entities so that you can obtain their parent entity without having to ser

Re: [google-appengine] New index creation in queued state for a long time

2010-08-24 Thread Robert Kluin
On Mon, Aug 23, 2010 at 17:06, baus wrote: > 2) Is it best to create the indexes ahead of app changes which depend > on those indexes? If so, is there a best practices guide that > describes doing this? Yes. You can also upload the app to a different version, then wait to make the new version de

Re: [google-appengine] Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Robert Kluin
On Tue, Aug 24, 2010 at 13:40, Saqib Ali wrote: > I am trying to use the appcfg.sh in the GAE Java SDK to rollback a > stuck (in progress) deployment. However the rollback is failing > because I have an space character in the Folder name for the Project: If that is the cause, why not just rename

Re: [google-appengine] Better way to implement many-to-many relationship

2010-08-24 Thread Jeff Schwartz
Yes, this requires 1 entity per join relationship between User & Community but the thinking shared by many is hard drive space is cheap. This would be a simple implementation using sql but alas no sql and thus you have to code this in a very flat manner. I've implemented similar use cases on appeng

Re: [google-appengine] Better way to implement many-to-many relationship

2010-08-24 Thread Eli Jones
Here's a slight amendment to my reply.. It might make sense to express the Communities a User has joined mapping using a List property.. as long as you capped the communities they could join. Then you might be able to do more interesting queries like "Select * from User Where communitiesJoined =

[google-appengine] Re: Are there any tool for viewing local db?

2010-08-24 Thread nischalshetty
you can view using the url http://localhost:8080/_ah/admin -Nischal On Aug 24, 7:22 pm, Kostya Kulagin wrote: > I'm playing with JDO and TWIG locally via junit tests. > My tests do create local db files successfully. > Is there any tool for viewing created db files? > > PS Please note that I hav

Re: [google-appengine] Better way to implement many-to-many relationship

2010-08-24 Thread Eli Jones
I don't imagine storing the members of a community in a List would scale very well... i'm sure the length of the list would max out pretty quick.. and you wouldn't be able to query on it very well even if the list could be very long. The second method you mention seems like it would work in a stra

Re: [google-appengine] Re: seeking CPU billing clarification

2010-08-24 Thread Eli Jones
Sometimes it's best to just read the source: http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/quota.py On Tue, Aug 24, 2010 at 2:15 PM, Greg Tracy wrote:

[google-appengine] Re: seeking CPU billing clarification

2010-08-24 Thread Greg Tracy
Nick... I'm using the wall clock time reported in the logs. This isn't something I'm measuring myself. Isn't that the number right after the return code (200)? I'd love to find the documentation for the quota package. It's something I've been looking for for a long time. I've never seen it anywh

Re: [google-appengine] Re: The phone number has been sent too many messages or has already been used to confirm an account.

2010-08-24 Thread Ikai L (Google)
Can you fill out this form? https://appengine.google.com/waitlist/sms_issues On Sun, Aug 22, 2010 at 12:29 PM, NealWalters wrote: > I still need to be able to create a test-site that I can share with co- > workers. > How do I get past this issue? What if I'm a consultant and I create > google a

Re: [google-appengine] Can you help me to remove building indexes?

2010-08-24 Thread Harshal
+1. Would like to know, pretty much in the same boat. On Tue, Aug 24, 2010 at 1:00 PM, ryan wrote: > Can you help me to remove building indexes? It has been building for > a couple of days, and it must be stuck in that state. Please remove > the building indexes. > > My application is zhengbinb

[google-appengine] Datastore Indexes how can you tell how long it will take? ETA

2010-08-24 Thread fedex1
Hi, I have an application at application id: "race-results" And I see an index has been running for more than a day. It needs adding jobs, but it's hard to tell if it's stuck or just running. Is there any way to find out an ETA for completion. Thanks, Ralph -- You received this message becau

Re: [google-appengine] New index creation in queued state for a long time

2010-08-24 Thread Harshal
+1 . 9 indexes building from last 6 hours or so. On Tue, Aug 24, 2010 at 2:36 AM, baus wrote: > Good Day: > > I'm new to app engine development. I published an update to my app > that requires two indexes. There is only a couple records in the Data > Store, but it is taking a long time to deplo

[google-appengine] Unable to rollback GAE Deployment Transaction

2010-08-24 Thread Saqib Ali
I am trying to use the appcfg.sh in the GAE Java SDK to rollback a stuck (in progress) deployment. However the rollback is failing because I have an space character in the Folder name for the Project: appengine-java-sdk-1.3.5/bin/appcfg.sh rollback "workspace/Crowded\ Intelligence/war/" (fails) ap

Re: [google-appengine] Better way to implement many-to-many relationship

2010-08-24 Thread Jeff Schwartz
I'd use a third entity type that would mimic a join between User & Community. Its model via java-like pseudo code would look like the following: class Join { long id // autogenerated key id User user; // you can use either a full key here or an id depending on if User's key id will always

[google-appengine] Windows won't let me run...

2010-08-24 Thread Jennyfrky
I'm supposed to be working on helloworld with python. However, although downloading http:googleappengine-1.3.6.msi went smoothly, windows refused to let me execute or run the program. It said I must go to where I downloaded program and have them do it. Tried this, still it won't let me run the p

[google-appengine] New index creation in queued state for a long time

2010-08-24 Thread baus
Good Day: I'm new to app engine development. I published an update to my app that requires two indexes. There is only a couple records in the Data Store, but it is taking a long time to deploy the indexes. In the meantime the app is in inconsistent state where it depends on indexes that don't exis

[google-appengine] Are there any tool for viewing local db?

2010-08-24 Thread Kostya Kulagin
I'm playing with JDO and TWIG locally via junit tests. My tests do create local db files successfully. Is there any tool for viewing created db files? PS Please note that I have NO web container running for tests - Its just JUnit tests. -- You received this message because you are subscribed to

[google-appengine] Re: Unable to SHOW image...

2010-08-24 Thread stanlick
I am having a situation where the favicon.ico shows up when running on the dev server but *not* the deployed app. In fact, when I added the to my appengine-web.xml, not only did it not display on the GAE machine, but it also caused the application to stop working. Is there a known list of things

[google-appengine] Re: 'module' object has no attribute 'defaulttags'

2010-08-24 Thread Carson Baker
I'm having the *exact* same problem. The error is intermittent and unpredictable. It's also exceedingly hard to isolate by removing chunks of code to see what triggers it. How else would I approach debugging this? Might there be some incompatibility between the internally hosted version of Django

[google-appengine] Problem to access Administration Console in Google App Engine

2010-08-24 Thread Emiliano
hi all ! i'm registered correctly to google app engine with my account and i've already uploaded 3 application ...but the PROBLEM is to access to the ADMINISTRATION CONSOLE:.. the Guide say that there's the Administration Console in https://appengine.google.com/start , where i can access to con

[google-appengine] Better way to implement many-to-many relationship

2010-08-24 Thread skin
Hi, I am trying to understand the way to create a many to many relationship in datastore. Let me take an example to start with. Suppose I have users and communities as two entities. A user can join as many communities as he wants and a community can have a lot of users. --

[google-appengine] Re: 'module' object has no attribute 'defaulttags'

2010-08-24 Thread Carson Baker
I'm also having this exact same problem. For me, the error is intermittent and exceedingly difficult to isolate. I suspect the problem has to do with incompatibilities between ext/webapp and Django, but I'm not sure how to investigate further. Any help on what this error means, or how to start deb

[google-appengine] How to send a user back to my site after he creates a new Google Account

2010-08-24 Thread Xar
Hi, Maybe this isn't the best place to ask this question, but it's Google related and I don't know anywhere else to ask =\ I'm using OpenID authentication for my app, but not everybody has a valid OpenID, and therefore I'm looking for easy ways for them to get one so they can login to my site. I'v

[google-appengine] Re: Guarantees for businesses?

2010-08-24 Thread Greg
I run a profitable business on Appengine, and strongly recommend it. As you mention, costs are low, but there are two other important aspects: 1) Google has more and better sysadmins running it than I could ever afford to hire, so I can sleep at night. Even when things go wrong (and they do occasi

[google-appengine] Can you help me to remove building indexes?

2010-08-24 Thread ryan
Can you help me to remove building indexes? It has been building for a couple of days, and it must be stuck in that state. Please remove the building indexes. My application is zhengbinblog. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group.

[google-appengine] Re: May I use the Google logo?

2010-08-24 Thread Flips
Thanks Ikai, I've removed the logo and asked google for permission. On 23 Aug., 21:07, "Ikai L (Google)" wrote: > You'll want to read this page about the proper permissions for using Google > logos: > > http://www.google.com/permissions/index.html > > http://code.google.com/appengine/terms.html >