[google-appengine] Re: questions on datastore (lowercase comparison / one character String )

2010-03-22 Thread vchalmel
Ok Thanks your advices solved my problem with lowercase Comparison. I still faces issues with these "one-character" Strings problem, do you know why, when i try to compare a String Attribute in Datastore to a "one-character" String, it throws this "java.lang.Character cannot be cast to com.google.

[google-appengine] Anyone noticing their requests taking more CPU usage today?

2010-03-22 Thread Blake
My crontabs have been taking around 500-600 cpu seconds, but today have been up over 1000 cpu seconds. I'm not asserting that there's an issue - it's possible it was a change I made, which is why I'm asking around. -- You received this message because you are subscribed to the Google Groups "Go

[google-appengine] Error if I set "required=False" for a StringListProperty

2010-03-22 Thread dhruvbird
Hello, I have a model with a single attribute that is a StringListProperty. I get an error if I define it as such: class Test(db.Expando): people = db.StringListProperty(required=False, indexed=True) However, on changing it to: class Test(db.Expando): people = db.StringListProperty(requ

[google-appengine] Re: How to call a URL of your own application?

2010-03-22 Thread dhruvbird
Hello, And another thing I want to be able to do is figure out the HTTP return code for that internal URL. Since everything in already a web hook, I might as well model my app. in a similar fashion. I was wondering if the appengine guys could work out a hack for urllib where calls to internal URL

[google-appengine] Re: questions on datastore (lowercase comparison / one character String )

2010-03-22 Thread Chau
You can save storage by just quote Max Ross's article... http://gae-java-persistence.blogspot.com/2009/11/case-insensitive-queries.html On Mar 23, 12:27 am, Gleidson - MG - Brasil wrote: > If you're using a relational database it's pretty easy to execute case- > insensitive queries because it's a

[google-appengine] Re: permutations vs Cartesian product in exploding indexes documentation

2010-03-22 Thread kostmo
OK, I just watched Brett Slatkin's I/O talk [1] and he mentions "cross product" a couple of times, so it seems that the use of the word "permutation" in the docs is incorrect; the number of index entries is indeed proportional to the Cartesian product, rather than "permutations" which would lead to

Re: [google-appengine] Reading a file in GAE Java

2010-03-22 Thread Patrick Twohig
I use Class.getResourceAsStream("/xml/myschema.xsd"); Cheers! On Mon, Mar 22, 2010 at 10:57 AM, Iain Flynn wrote: > Hi there. I have an application that requires me to read in and > transform an XSLT stylesheet, which I keep in the directory /xml in / > war. > > I've read the tutorials, and

[google-appengine] static files not found after upload

2010-03-22 Thread Glenn Blackler
Hello -- My very simple app works fine on the dev server, but once uploaded it can't access a file in one of my static directories. I have a static directory "HTML" with two files in it. The first comes up fine (I redirect to it from .py script) but the other HTML file always brings an error when

[google-appengine] updating to new release of eclipse plugin causing datanucleus errors (again)

2010-03-22 Thread haole
after updating to the newest release (20100319) of the eclipse plugin (on 3/22), datanucleus enhancer is throwing null pointer exceptions again. last time, it was due to classpath that was too long. removing some unneeded jars out of my WEB-INF/lib directory seemed to do the trick. this time, i can

[google-appengine] Reading a file in GAE Java

2010-03-22 Thread Iain Flynn
Hi there. I have an application that requires me to read in and transform an XSLT stylesheet, which I keep in the directory /xml in / war. I've read the tutorials, and I've included it as a resource file (more specifically, set that all xsl files are included as resource files), but when I try to

Re: [google-appengine] Can I change the login option of my app if I delete it?

2010-03-22 Thread Eli Jones
Here is the specific documentation on app deletion: http://code.google.com/appengine/kb/adminconsole.html#delete_app You cannot use the appid again, unfortunately. On Mon, Mar 22, 2010 at 8:25 PM, djidjadji wrote: > To my knowle

Re: [google-appengine] Can I change the login option of my app if I delete it?

2010-03-22 Thread djidjadji
To my knowledge the appid can only be once allocated. If you delete the app the appid is no more available. 2010/3/23 Mariano Benitez : > I understand I cannot change the option while the application is > enabled. Also that the application Id is reserved if I delete the > application. But... can I

[google-appengine] Can I change the login option of my app if I delete it?

2010-03-22 Thread Mariano Benitez
I understand I cannot change the option while the application is enabled. Also that the application Id is reserved if I delete the application. But... can I re-create the application with a different login option, or the app id is reserved to never be used again? Thanks! -- You received this mes

Re: [google-appengine] Re: ~7 GB of ghost data???

2010-03-22 Thread Nick Johnson (Google)
Hi, On Mon, Mar 22, 2010 at 8:45 PM, homunq wrote: > OK, after hashing it out on IRC, I see that I have to erase my data > and start again. Why is that? Wouldn't updating the data be a better option? > Since it took me 3 days of CPU quota to add the data, > I want to know if I can erase it q

Re: [google-appengine] Re: ~7 GB of ghost data???

2010-03-22 Thread Eli Jones
oh man.. well, he's going to be wiping out 7GB of junk... :) When I went through process of deleting something like 400MB of junk.. it was not fun First I started off deleting by __key__ in batches of 500, then I had to limit down to 200.. then down to 100.. then down to 50.. then down to 10.

Re: [google-appengine] Re: ~7 GB of ghost data???

2010-03-22 Thread Patrick Twohig
I'd use a cursor on the task queue. Do bulk deletes in blocks of 500 (I think that's the most keys you can pass to delete on a single call) and it shouldn't be that hard to wipe it out. Cheers! On Mon, Mar 22, 2010 at 1:45 PM, homunq wrote: > OK, after hashing it out on IRC, I see that I have

[google-appengine] Re: ~7 GB of ghost data???

2010-03-22 Thread homunq
OK, after hashing it out on IRC, I see that I have to erase my data and start again. Since it took me 3 days of CPU quota to add the data, I want to know if I can erase it quickly. 1. Is the overhead for erasing data (and thus whittling down indexes) over half the overhead from adding it? Under 10

Re: [google-appengine] Re: ~7 GB of ghost data???

2010-03-22 Thread Nick Johnson (Google)
Hi Patrick, An overhead factor of 12 (as observed below) is high, but not outrageous. With long model names and property names, this could happen with relatively few indexed properties - on the order of magnitude of tens, at most. -Nick Johnson On Mon, Mar 22, 2010 at 8:07 PM, Patrick Twohig wro

Re: [google-appengine] Re: ~7 GB of ghost data???

2010-03-22 Thread Patrick Twohig
Hey Nick, Just out of curiosity, how many properties would it take to get that amount of wasted space in overhead? Are we talking about entities in the orders of magnitudes of tens/thousands/hundreds? On Mon, Mar 22, 2010 at 9:07 AM, homunq wrote: > OK, I guess I'm guilty on all counts. > > C

Re: [google-appengine] Re: Will GAE ever be open source?

2010-03-22 Thread Patrick Twohig
On Mon, Mar 22, 2010 at 5:47 AM, Wooble wrote: > > > On Mar 22, 12:36 am, Iap wrote: > > My concern is that the open-source GAE would also expose the weakness of > > GAE. > > That makes the GAE more vulnerable under attacking. > > I hope you're not coding in a programming language that's open >

[google-appengine] Re: questions on datastore (lowercase comparison / one character String )

2010-03-22 Thread Gleidson - MG - Brasil
If you're using a relational database it's pretty easy to execute case- insensitive queries because it's a native feature of the database. It usually looks something like this: select * from Person where UPPER(lastName) = 'ROSS' This is a challenge for the App Engine Datastore because we rely o

Re: [google-appengine] How can I reset my application?

2010-03-22 Thread djidjadji
Change the version name of the app, upload the new version, make it default and remove the old version. 2010/3/22 Snoopy : > i just uploaded wrong files to my application..so,is there any way to > delete them or reset that to undeveloped? > > -- > You received this message because you are subscrib

Re: [google-appengine] questions on datastore (lowercase comparison / one character String )

2010-03-22 Thread djidjadji
If you want to compare lowercase you have to store the value lowercase in the object. GQL != SQL You can't do more then described on the GQL reference page. You have to traverse (get) all you current objects and make the field login lowercase and store the object back and as such update the index

[google-appengine] permutations vs Cartesian product in exploding indexes documentation

2010-03-22 Thread kostmo
It is still unclear to me exactly how many index entries will be produced by including multiple ListProperty's in an entity. In one post [1], between the inquiring user and the Google rep, the possibilities for the number of index entries included the power set, Cartesian product, or the "number of

[google-appengine] how to solve ClassNotPersistenceCapableException

2010-03-22 Thread aptest1 actiprocess
I have developed a application in my local system its running correctly. after uploading to the GAE its giving following exception: 115.108.122.17 - - [22/Mar/2010:02:41:51 -0700] "POST /smartstore/ greet HTTP/1.1" 200 134 "http://smartstoreact.appspot.com/smartstore/ 5CBF907BC63196D7B1E2BE14580315

[google-appengine] new gae member

2010-03-22 Thread Gleidson - MG - Brasil
hello, I am Brazilian and participate in this nearby group. -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appeng

[google-appengine] questions on datastore (lowercase comparison / one character String )

2010-03-22 Thread vchalmel
Hi ! I wonder how to compare a String stored in a datastore entity (field "login") to an entry (also named login) considering their lowercase version : - I tried : "SELECT count(this) FROM "+Gestionnaire.class.getName()+" WHERE LowerCase(login)== LowerCase('"+login+"')" which throws an exception

[google-appengine] How can I reset my application?

2010-03-22 Thread Snoopy
i just uploaded wrong files to my application..so,is there any way to delete them or reset that to undeveloped? -- 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-appeng...@googlegroups.com. To unsub

[google-appengine] i18n and verbose_name

2010-03-22 Thread Emilis Kuke
Hello! I spend more than few hours using google and reading django and google app engine documentation, but I couldn't find solution for my problem. So I expect maybe somebody could helps me. So I have model: class Advertisement(db.Model): name = db.StringProperty(required=True,verbose_name=_(u

[google-appengine] Re: HELP! 7 GB of ghost data - billable but not in datastore, blobs, or versions.

2010-03-22 Thread homunq
Sorry, this thread is a duplicate of http://groups.google.com/ group/google-appengine/browse_thread/thread/2a116e341b97c6fd/ 6ad663cd210032b2?lnk=gst">that other one. I got impatient and reposted before the other one got moderated. Useful word from Google along with my response is over there - basi

[google-appengine] Re: ~7 GB of ghost data???

2010-03-22 Thread homunq
OK, I guess I'm guilty on all counts. Clearly, I can fix that moving forward, though it will cost me a lot of CPU to fix the data I've already entered. But as a short-term stopgap, is there any way to delete entire default indexes for a given property? (I mean, anything besides setting indexed=Fal

[google-appengine] Re: storage consumption in dashboard for local development server?

2010-03-22 Thread kostmo
Issue filed: http://code.google.com/p/googleappengine/issues/detail?id=3001 On Mar 21, 11:21 pm, Robert Kluin wrote: > I agree, it would be very nice to have something in the local dev > server that would help estimate the space required on the production > system. > > If you make an issue for th

[google-appengine] Re: Accessing gmail's atom feed using the google accounts API google.appengine.api.users

2010-03-22 Thread romuwild
xoopit? On Mar 22, 4:24 am, Tom Wu wrote: > xoopit > > 2010/3/22 romuwild > > > > > is there any way to let a user sign in using the google account API > > and then access its gmail atom feed without any relogin? > > > thanks! > > > -- > > You received this message because you are subscribed to

[google-appengine] Re: Efficient Tag/Labels design using App Engine

2010-03-22 Thread Killian
Hi Robert, Thank you very much for your feedback, you've raised my attention on points I hadn't considered into account. >> Are all of these entities global or are some or all of them user-specific? LO will be user specific since their Knowledge attribute will correspond to a specific user's know

[google-appengine] Re: Will GAE ever be open source?

2010-03-22 Thread Wooble
On Mar 22, 12:36 am, Iap wrote: > My concern is that the open-source GAE would also expose the weakness of > GAE. > That makes the GAE more vulnerable under attacking. I hope you're not coding in a programming language that's open source. Just imagine the vulnerabilities. Of course, with pytho

[google-appengine] Re: HELP! 7 GB of ghost data - billable but not in datastore, blobs, or versions.

2010-03-22 Thread Wooble
On Mar 22, 4:20 am, homunq wrote: > I have no custom indexes. I have only two entities. 99.9% of the data > is in the Expando which has about 45 stringproperties (initally all > indexed, now around 30 are; many frequently empty string); 4 integer > properties; 4 dates; 4 lists (about 4-8 members

Re: [google-appengine] ~7 GB of ghost data???

2010-03-22 Thread Nick Johnson (Google)
Hi, The discrepancy between datastore stats volume and stored data is generally due to indexing overhead, which is not included in the datastore stats. This can be very high for entities with many properties, or with long entity and property names or entity keys. Do you have reason to suppose that

Re: [google-appengine] ~7 GB of ghost data???

2010-03-22 Thread Brett Shelley
Are you storing anything in the Blob Store? If so, well, deleting Blobs from the AppSpot console does not work. Perhaps the problem is systemic. But, if it helps revenue, then why fix it? -Brett On Mon, Mar 22, 2010 at 5:26 AM, Robert Kluin wrote: > I do not think they charge separately for b

[google-appengine] Re: How to call a URL of your own application?

2010-03-22 Thread dhruvbird
On Mar 22, 6:30 am, Eli Jones wrote: > Depends on how you want the code to work.. > > If you just want to send of work to get processed by those other handlers, > then firing off a Task (either with Task Queue or Deferred Task) would be > perfect for that. Actually, this is a task that will cre

[google-appengine] Re: HELP! 7 GB of ghost data - billable but not in datastore, blobs, or versions.

2010-03-22 Thread homunq
Thanks for responding. I've starred the bug - it seems basic. More answers below. On Mar 21, 7:06 pm, Eli Jones wrote: > Depending on how your Models are defined (how many properties and what the > property types are there) and depending on custom indexes, 10 to 1 is > reasonable. Even if I have

[google-appengine] How do you handle with "Error: ReferenceProperty failed to be resolved"

2010-03-22 Thread eng. Ilian Iliev
Hi all, I`m sure lot you have faced this error and I saw some post for it but couldn`t find some more general way for handling it. Iterating over the whole datastore after my app is broken doesn`t seems to me the fastest way. Knowing the connections between models and cascade delete/update if som