[appengine-java] Re: using the bulk loader with a date_time field

2011-03-14 Thread Michael Green
For the record (looks obvious in hindsight), the correct format is:  
2010-12-13T22:55:00

~Michael

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] using the bulk loader with a date_time field

2011-03-13 Thread Michael Green
I think this is a very basic question, but I can't seem to find a clear 
answer.  I'm uploading date into app-engine and one of the entities has a 
date_time field:

- property: startDate
  external_name: startDate
  import_transform: transform.import_date_time('%Y-%m-%dT%H:%M:%S')
  export_transform: transform.export_date_time('%Y-%m-%dT%H:%M:%S')

The text that I got out in a CSV is in the format  '12/13/2010 22:55:00' (i 
added the single quotes for this post).  When I tried to import (again with 
no quotes), I got an error that my date does not match the format.  What the 
best way/format to upload date_time info into app engine?

Thanks.

~Michael

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Weird performance problem last 3 days or so

2011-03-13 Thread Michael Green
Thanks for the tip!  I've confirmed the exact same behavior.  I deployed the 
same application to a new appspot domain and it seems to be running much 
faster.My problem is that I've set up a Google App domain for the 
first.  So before going through the headache to switch to a new domain, i'd 
be interested in investigating what is happening.

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Weird performance problem last 3 days or so

2011-03-12 Thread Michael Green
For what it's worth.  About the same time, I developed an issue on my dev 
machine, a (Mac), that seems to be related to the recent Java SE Update 4 
release.  There a thread on the issue 
here
.

Any chance the newly released Java update could be impacting performance on 
app engine (may be a stretch, but thought I would throw that out).

~Michael

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Weird performance problem last 3 days or so

2011-03-12 Thread Michael Green
I've had similar issues since the past three days.  Since I was out on 
vacation for the week, I'm fairly certain that it wasn't because of anything 
I changed.  The first symptom was when my warmup requests ate up all of my 
daily quota because I was getting HDEE's all day on Wednesday.  This had 
never happened before.

My first suspicion was a long term memory issue with my app since it had 
been running for a few days.  However, since uploading newer versions, I 
continue to see the same degraded performance.  Since late Tuesday, all 
requests seem to take much longer with a high percentage getting killed due 
to HDEE.

Has something changed on the platform this week?  In the mean time, I'm 
instrumenting for app stats to see if I can get a handle on bottlenecks.

~Michael

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Relationship modeling for a Post and a Comment: which option will perform best in GAE

2010-12-23 Thread Michael Green
2 Classes: a Post and a Comment; there is a one to many relationship with
one Post having many Comments



I’m thinking of a couple of options



Option 1: The Post contains a list of keys to a Comment (and the Comment
does not know directly about which Post it pertains to)



Option 2: The Comment contains a key to its Post (and the Comment has no
direct knowledge of Comments)



In both cases, I would like to have the ability to query in either
direction.  I think that GAE would support that since (using Option 1 as an
example) a Comment could always query for Posts containing its key in the
MVC property.  My question is whether there is a significant performance
difference between querying in either direction.


Note:  I’m avoiding each class having a key to the other to avoid the need
for a transaction boundary to maintain referential integrity.  Would like to
hear opinions.  Thanks!

~Michael

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Transaction locking with grandparent -> parent -> grandchild

2010-12-23 Thread Michael Green


I have a relationship model with one-to-many relationships between a 
grandparent, multiple parents each with multiple children.  If I model these 
as owned, will wrapping an update to one of the grandchildren inside a 
transaction lock the entire entity group for all descendants of a single 
grandparent?  Does the answer differ if the ownership is uni-directional vs. 
bidirectional?

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.