[appengine-java] Re: Unit testing 2nd class citizen?

2009-11-22 Thread Philippe Marschall


On Nov 21, 1:18 am, John Towell john.tow...@gmail.com wrote:
 I just had to do this

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 This is a bit shady to still not have been fixed.

I don't see the problem here. It's the same thing with JUnit, Hamcrest
and all the other test dependencies. You can use the same solution you
use there like for example test scoped Maven dependencies.

Cheers
Philippe

--

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=.




[appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-22 Thread Ravi
Hi Few days back i asked a question that which libraries can be used
to Convert Object to Xml and vice versa, and got advice to use betwixt
(http://commons.apache.org/betwixt/)..
I tried it and its working locally but on GAE server its not working
and throwing following exception

org.apache.commons.betwixt.XMLIntrospector introspect: Security
manager does not allow bean info search path to be set

then i suppose we can not use Betwixt on GAE. If we can then can
anyone tell what i can do to make it work.
If not then can you suggest any othe rlibarary which can be used.

Thanks,
Ravi.

On Nov 8, 5:50 pm, LUAI KASSAR luai.kas...@gmail.com wrote:
 Use Apache betwixt ,its works on GAEhttp://commons.apache.org/betwixt/



 On Sun, Nov 8, 2009 at 7:46 PM, Ravi Sharma ping2r...@gmail.com wrote:
  I am not sure if i understand you.
  Can you explain bit more, an example or link would be great.
  I can do normal Sax parsing but then writing code for each different kind
  of xml is gonna be very tidious work.So looking for some GAE supported
  libararies like JAXB or XMLBEAN

  My Requirment is as follows(in cae is there was any misunderstanding)
  xml
  order
     clientinfo
        name/name
        address/address
     /clientinfo
     items
          item
              namePersonName/neam
              quantity2/quantity
              price/price
          /item
     /items
     vendor
         nameMy Venod ltd/name
         addressABC 234/address
     /vendor
  /order

  and now in java if i want to get the vbendor name
  tehn i should be able to access it using classes directly(which will be
  generated compile time)
  Order  order = SomeMarsheller.unmashel(fullxml);
  String vendorName = order.getVendor().getName();

  My Orginal Mail was
  Hi,
  Is there any library like Apache XMLBeans/JAXB supported in Google APP
  Engine which can be used for converting XML to Java Object and Java
  Objects to XML.
  I checked the White lists of libraries and found that

  JAXB is not supported ( I have already stared the issue related to it)
  and Xmlbeans was not mentioned as Supported Library.

  I am sure lots of people here doing this normal thing to convert Java
  Object to XML and Vice Versa.
  Please Suggest some thing

  Ravi.

  On Fri, Nov 6, 2009 at 3:59 PM, rakeshv rak...@rakeshv.org wrote:

   I am sure lots of people here doing this normal thing to convert Java
   Object to XML and Vice Versa.
   Please Suggest some thing.

  The XML element/attribute pair maps quite well into the low level API
  Entity/properties structure.  That should be all you need.

  Rakesh- Hide quoted text -

 - Show quoted text -

--

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=.




[appengine-java] Make application available for Google Apps customers

2009-11-22 Thread Peter Ondruska
This is less technical question and I am not sure if it can be
answered.

I have a Google App Engine application I would like to be used by
Google Apps domains (and publish to Google Enterprise Marketplace to
make it available for any Google Apps customers). However when testing
I found that if I use Google Apps authentication this application is
available to just one Google Apps domain and cannot be used by
another. If I allow use by any Google account Google Apps customers
can add this application but they are unable to sign in using their
Google Apps domain account.

How is this done? There are plenty of applications available
(Moderator for instance) which you can hook up to any domain.

Thanks,

Peter

--

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=.




Re: [appengine-java] Re: updating object doesn't work anymore

2009-11-22 Thread Jeffrey Goetsch
I am not using OpenPersistenceManagerInViewFilter, but I am using Spring to
create the PersistenceManager at the beginning of the a request. If am
changing many objects, and I seem to have problems where they don't get
stored to the datastore.  I can check right before I close the
PersistenceManager that they objects are dirty, but they don't seem to
update the datastore.

I have found a hacky workaround, that if I open and close the
PersistenceManager pretty close to where I make the change, it seems to
store correctly.  But this has caused other bugs where I have handles to
objects that are part of a closed PersistenceManager.

I am not sure this helps you, but I wanted to let you know that other people
are having similar problems.

--Jeff

On Thu, Nov 19, 2009 at 11:48 PM, datanucleus andy_jeffer...@yahoo.comwrote:

  Any thoughts

 Look at the log perhaps? since it will tell you exactly what happens
 (at DEBUG level), and since you present no persistence code I'm not
 sure what other replies you're likely to get

 --

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=.




--

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=.




Re: [appengine-java] Re: A web service with security (java)

2009-11-22 Thread Rusty Wright
There's also Spring Security (aka Acegi).


Andrey wrote:
 Now I can (partly) answer the question by myself :)
 
 1) In the simplest situation it's easy to develop a stateless web
 service (the userName and userPassword can be passed straight into the
 request url).
 2) To simplify the transformation of object to XML it's better to use
 languages like Groovy. Which groovy package can be used under the GAE
 is the question :). It's interesting, does everything from here
 https://www.ibm.com/developerworks/java/library/j-grails09168/ can be
 applied under GAE...
 Gaelyk http://gaelyk.appspot.com/ can simplify the life :).
 3) Articles about usage of SOAP Service under GAE:
 http://blog.cloudwhiz.com/2009/09/exposing-soap-service-on-gae-part-1.html
 (and other parts as well...)
 4) Restlet is also interesting 
 http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.html
 
 -Andrey
 
 --
 
 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=.
 
 

--

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=.




[appengine-java] Re: java.lang.NoClassDefFoundError: com/google/appengine/api/xmpp/JID

2009-11-22 Thread lallafa
My answers to your questions are in my post from 28. oct.

I continued debugging my XMPP test app today. At first, the same error
occurred. I tried Class.forName(com.google.appengine.api.xmpp.JID).
That worked. And now sending XMPP also worked!

To find out, what caused the problems, I added the saxon9.jar
(provides services for javax.xml.xpath.XPathFactory and
javax.xml.transform.TramsformerFactory). Now I got a
ClassNotFoundException again! And I still get this exception even
though I removed the saxon9.jar  (and deployed a new version of the
app and removed all other old versions).

So what I did:

APP1 (uses saxon9.jar): added XMPP test - ClassNotFoundException JID
APP2 (created from scratch, empty lib, no saxon9.jar): XMPP test -
works!
APP2: small changes (just logging) - ClassNotFoundException JID
APP2: a lot of testing, creating new versions, deleting old
versions, ... - ClassNotFoundException JID
APP1: XMPP test removed
APP2: Class.forName(com.google.appengine.api.xmpp.JID) and some
other testing - works!
APP2: adding saxon9.jar - ClassNotFoundException JID
APP2: removing saxon9.jar - ClassNotFoundException JID
APP2: creating new versions, deleting old versions, ... -
ClassNotFoundException JID

- Claus

On 27 Okt., 22:24, Jason (Google) apija...@google.com wrote:
 Are you still seeing this error? If so, which version of the SDK are you
 using? Did you change your SDK settings or update your SDK between the time
 when XMPP was working and when it started failing?

 Also, can you list the JARs in your war/WEB-INF/lib directory?

 - Jason

 On Sat, Oct 24, 2009 at 12:56 PM, lallafa claus.cla...@gmail.com wrote:

  I wrote a test servlet SendServlet that sends invitations and
  messages.

  Calling the servlet works fine with with the runtime. It also worked
  when it was uploaded to app engine the first time. But after uploading
  new versions the following exception is thrown:

  java.lang.NoClassDefFoundError: com/google/appengine/api/xmpp/JID
         at plapperbot.SendServlet.doPost(SendServlet.java:29)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  487)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1093)
         at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
  (SaveSessionFilter.java:35)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1084)
         at
  com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
  (TransactionCleanupFilter.java:43)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1084)
         at org.mortbay.jetty.servlet.ServletHandler.handle
  (ServletHandler.java:360)
         at org.mortbay.jetty.security.SecurityHandler.handle
  (SecurityHandler.java:216)
         at org.mortbay.jetty.servlet.SessionHandler.handle
  (SessionHandler.java:181)
         at org.mortbay.jetty.handler.ContextHandler.handle
  (ContextHandler.java:712)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
  405)
         at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
  (AppVersionHandlerMap.java:238)
         at org.mortbay.jetty.handler.HandlerWrapper.handle
  (HandlerWrapper.java:139)
         at org.mortbay.jetty.Server.handle(Server.java:313)
         at
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  506)
         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
  (HttpConnection.java:830)
         at
  com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
  (RpcRequestParser.java:76)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
         at

  com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
  (JettyServletEngineAdapter.java:139)
         at com.google.apphosting.runtime.JavaRuntime.handleRequest
  (JavaRuntime.java:239)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:5135)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:5133)
         at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
  (BlockingApplicationHandler.java:24)
         at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
  363)
         at com.google.net.rpc.impl.Server$2.run(Server.java:814)
         at com.google.tracing.LocalTraceSpanRunnable.run
  (LocalTraceSpanRunnable.java:56)
         at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
  (LocalTraceSpanBuilder.java:516)
         at com.google.net.rpc.impl.Server.startRpc(Server.java:769)
         at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
         at 

[appengine-java] Re: convert JDO query to JPA

2009-11-22 Thread lp
 Can you post the JPA version of your entity?

@Entity
public class Friend {


  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key key;

  private String lastName;

  public int crud;

  private String firstName;

  @Basic
  private CollectionKey friends;


 I've just built something similar, and if I pass a Key to:

             query.setParameter(key, key);

 This works correctly, though if I pass the String key to it

             query.setParameter(key, someLongString);


what was ur query? was the query to filter on a collection?
i have set the parameters against primitive members successfully but
not against collection members.

 It returns an empty list. Could this be what is happening?

no.i just retested my code to make sure i hadnt messed up. i am
definitely using a Key not a string.

//JPA
javax.persistence.Query query = em.createQuery(select from Friend f
where f.friends=:key);
query.setParameter(key, user2.getKey());

return list of 0

using the *same* JPA entity code the JDO works fine

//JDO
javax.jdo.Query query = pm.newQuery(Friend.class);
Key myKey = user2.getKey();
query.declareParameters(com.google.appengine.api.datastore.Key
myKey);
query.setFilter(friends == myKey);
query.setOrdering(lastName ASC, firstName ASC);
ListFriend friendList = (ListFriend) query.execute(myKey);

return correct list

Q1 can u post your JPA code so i can see what u have done differently?

Q2. is mixing JPA and JDO ok? ie. JPA entity and JDO seems to work for
me.

Q3.how does the collection equality filter work in app engine? I have
not found any docs to explain the 'voodoo' like behaviour.
from what i can determine the collection filter is executed on the
data store and not in the application as the unfiltered list executed
the 1000 row limit.
it works but i dont understand how.

any help most appreciated

-lp

--

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=.




[appengine-java] Re: Cannot retrieve value of the newly created attribute in a JDO

2009-11-22 Thread Jolam
I have some problems with making some ArrayList attributes
persistent,i wonder whether these two problem have some similarities.
Would you tell me how u fixed it or can u help me to fix my own?
please.

On Nov 7, 4:59 pm, delightwjk delight@gmail.com wrote:
 I have fixed this problem. Thanks.

 On Nov 6, 11:05 am, delightwjk delight@gmail.com wrote:

  Thank you Jorge,

  I checked the document you mentioned, but i'm still not sure what is
  the reason of my issue. I added a field inJDO(Boolean successFlag),
  and stored several entities in datastore, I was able to see the
  entities with successFlag property from admin console Datastore -
  Data Viewer, and the values of successFlag properties were correct.
  The entities have the property successFlag with correct value, and the
 JDOclass has the corresponding field, but why I could not retrieve
  the values of successFlag viaJDO?

  Jiakuan

  On Nov 5, 9:57 pm, Jorge athenas...@gmail.com wrote:

   You may want to check the rules that apply in this case as documented
   at the bottom of this page::
      http://code.google.com/appengine/docs/java/datastore/dataclasses.html

   Jorge Gonzalez

   On Nov 4, 8:06 am, delightwjk delight@gmail.com wrote:

Hi All,

I created aJDOclass, which had some attributes, and I created some
CRUD operations, all of them worked correctly.

Then I added a new attribute in theJDOclass, and then set value to
it and persisted it as usual when I executed CRUD operations. The
problem is that I cannot retrieve the value of the new attribute in
program, the value is always null. But when I check the value in
Datastore - Data Viewer, the value is correct. So i'm wondering
why it cannot be retrieved in application. Is there some cache
mechanism?

Thanks in advance!
Jiakuan

--

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=.




[appengine-java] Re: Cannot get guestbook.jsp of Guestbook app to work

2009-11-22 Thread andreas diavastos
I also have the same problem and i do have the jdk1.6 installed.
If i copy the guestbook.jsp code inside the predefined index.html file
in the eclipse the guestbook.jsp code it shows me the
html code in the browser but the java functions does not work!
If I do a new file named guestbook.jsp nothing works.
Any other ideas please?

Thank you,
Andreas

On Nov 15, 5:06 am, zhiw...@gmail.com zhiw...@gmail.com wrote:
 1. make sure use jdk1.5 or 1.6

 2. uninstall your jre , only let jdk in your computer.

 On Nov 15, 8:10 am, Martin martin.j.lebor...@gmail.com wrote:



  Hello - I'm trying to work through the Guestbook tutorial of Google
  App Engine tutorial.  (Using Eclipse), but getting stuck at the
  section where I develop jsps (and then develop a guestbook.jsp)

  I'm able to get the project working - I can manipulate the
  GuestbookServlet class file to display a welcome message.

  However, when I attempt to incorporate the guestbook.jsp, I still only
  see the old display message that I wrote in GuestbookServlet.
  (I've recompiled, restarted Eclipse, and even restarted computer).

  1) Web xml looks like:
      welcome-file-list
           welcome-fileguestbook.jsp/welcome-file
      /welcome-file-list

  2) guestbook.jsp is pasted directly from tutorial.

  3) Going to http://localhost:8080/guestbook; yields the message I
  coded in the GuestbookServlet

  4) Going directly to:http://localhost:8080/guestbook.jspyieldsan
  error:
  Error running javac.exe compiler
  RequestURI=/guestbook.jsp
  Caused by:
  Error running javac.exe compiler
          at
  org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExter 
  nalCompile
  (DefaultCompilerAdapter.java:473)
          at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute
  (JavacExternal.java:47)
          at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
          at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
          at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:
  382)

  5) I even trimmed out all jsp code from guestbook.jsp and i get same
  results - get servlet message from going to /guestbook and get above
  error from going directly to guestbook.jsp. (And yeap, I recompiled
  and restarted)
  .
  Any thoguhts?
  Thank you very much for your help. I greatly appreciate it.
  Martin

--

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=.




[appengine-java] JDO x JPA

2009-11-22 Thread Rafael Reuber
Hi there,

What's the better suport for GAE, JDO or JPA? I see many examples in JDO
so I think that it have the better support.

-- 
Rafael Reuber
MSN/Gtalk: psico.in...@gmail.com

--

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=.




[appengine-java] Re: Datastore Issues

2009-11-22 Thread Jolam
The Datastore problems makes me crazy too...

On Nov 22, 3:46 pm, Jeffrey Goetsch jeffg@gmail.com wrote:
 I have been having a lot of trouble with JDO objects not storing, or at
 least not storing some of the data.  This has been extremely frustrating,
 and have thought about giving up on Appengine a few times, because my
 current design seems bring out all the bugs in the Datastore/Datanucleus
 code.  Are other people also having major issues?

 Currently, my design starts a Data session at the beginning of the request,
 and then closes at the end of the request.  I figured this should save all
 the changes that I have made to the Datastore.  What I am finding is that
 some of the objects are being stored and other objects are not.  I have
 managed to get most of the code working by open and closing
 PersistenceManager multiple times during the processing of a request.  This
 feels very hacky, and introduces other bugs where I have a handle to an
 object opened in one of the early PersistenceManager, but not in the
 currently opened one.

 The project has lots of business logic unit test, which makes sure that all
 the objects get updated correctly per request.  So, when I discover bad data
 in the datastore, I know it is a problem with the storing of the objects.  I
 have made multiple attempts at simplifying the issue to post to this list,
 but as the code gets simpler the issues seem to go away.  I am willing to
 share my larger code base with developers that are working on trying to fix
 these problems, but I don't want make a general post to everyone.

 Thanks,
 Jeffrey Goetsch

--

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=.




[appengine-java] Batched gets via pm.getObjectsById

2009-11-22 Thread Erem
Is there any particular reason that persistenceManager.getObjectsById
isn't optimized to perform batch gets like the low-level API does?
Seems like it would make sense and it would also make my current
optimization problem easier.

Context
The getObjectsById function hasn't been optimized to perform a batch
get, so
you're just as well-off issuing multiple calls to getObjectById. If
you need
to issue a batch get, you'll need to use the low-level API.
(http://groups.google.com/group/google-appengine-java/browse_thread/
thread/53f9acc11b6d1a84/4af4368394521b2f?
lnk=gstq=newObjectIdInstance#4af4368394521b2f)

--

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=.




[appengine-java] Re: convert JDO query to JPA

2009-11-22 Thread datanucleus
 Q2. is mixing JPA and JDO ok? ie. JPA entity and JDO seems to work for me.

As per the DataNucleus docs you can define persistence with JPA
metadata and persist using JDO, or define persistence using JDO
metadata and persist using JPA. You definitely won't find that
flexibility in any other JPA/JDO implementation.

 Q3.how does the collection equality filter work in app engine? I have
 not found any docs to explain the 'voodoo' like behaviour.

I assume their interpretation of  field == collectionValue
is the same as collectionValue.contains(field)
i.e non-standard JDOQL.
When they support valid JDOQL syntax (the latter expression, in their
next release IIRC) you would be strongly recommended to change to use
that rather than this weirdness

--

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=.




[google-appengine] Re: Best practice for environment architecture design (development, test, verification, production)

2009-11-22 Thread Anders Moberg
I would like to thank you for the good and fast answers!

We will go the “obvious” way and create a different application for
each purpose in the development and operation process. But we will
also take a look at the version-functionality.

Many thanks

On Nov 20, 8:09 pm, Ikai L (Google) ika...@google.com wrote:
 By the way - regarding the question about multiple versions of the same app:
 we have a restriction against this if it is used for the sake of dodging
 quota. This isn't the case here. Many of our customers run multiple versions
 to stage and test their application.

 On Fri, Nov 20, 2009 at 11:04 AM, Mikhail Kashkin mkash...@gmail.comwrote:





  Hi,

  read inline comments

  On Nov 20, 11:54 am, Anders Moberg anders.moberg.fri...@gmail.com
  wrote:
   Hi,

   I have searched for some kind of best practice for environment
   architecture design in GAE but haven't found anything (yet).

   I think we need 4 environments, development, test, verification and
   production. But that is just my initial thought. So my questions are:
    - What environments do you recommend?

  I use Eclipse with PyDev and Google App Engine Launcher (under Mac
  OSX). Mercurial as version control system.

    - What is easiest way to set up these environments?

  You can find a lot of tutorials how to setup such environment

    - Has google any official/unofficial policy against multiple versions
   for the “same” application?

  Never hear about such restrictions. As I know this is normal way. Only
  problem now that there is no support to update all instsnces same
  time, but it in roadmap.

   Our idea is to use a local computer for development. And 3 GAE hosted
   environments, where:

  Use SDK, seems like it is expected use case.

    - test would be for unit and integration test
    - verification for end-user-tests

  You can use unit test and UI test (I prefer Selenium based).

    - production of course for the final version.

  Just deploy and have fun

   I'm very interested in your thoughts and experience in this area!

   Regards, Anders Moberg

  --
  Mikhail Kashkin
 http://www.devcult.ru/
 http://www.mediavirus.ru/
 http://app-engine.tumblr.com/(Russian App Engine Blog)

  --

  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-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: How to design data model

2009-11-22 Thread niklasr


On Nov 16, 6:11 am, fhucho fhu...@gmail.com wrote:
 Unfortunately, I'm not using Python... is there a way to make this
 work in Java?

Absolutely. Even more (and harder) ways in Java. Most of the project
(CRUD) create update delete a.k.a view add delete edit  is available
via montao.googlecode.com welcome view live montao.com.br migr8ing to
gae web.montao.com.br and Indian version Fridge.Koolbusiness.com


 On Nov 16, 5:38 am, niklasr nikla...@gmail.com wrote:

  On Nov 15, 5:48 pm, fhucho fhu...@gmail.com wrote: Hi,
   I am developing a web app, where users should be able to (in this
   order):
       1) create their item type (item type can be everything - car,
   book, movie..., item type has some user defined parameters,
   like                                        price, rating)
       2) add items of their type - e.g. they can create book type (with
   title, author, rating parameters) and then add books
       3) view, filter (at least by one parameter), delete, edit their
   items

   How should I design the data model? Is this even posible in App
   Engine?

   Thanks in advance

  django has impressive builtin editor for our models with
  djangoforms.ModelForm seen 
  onhttp://code.google.com/appengine/articles/djangoforms.html
  Theoretically the create CRUD and/or factory 
  patternhttp://en.wikipedia.org/wiki/Factory_method_pattern
  I recommend and use for likewise. The 
  categoryproperty.dbhttp://code.google.com/appengine/docs/python/datastore/typesandproper...
  seems obvious choice which needs documention how it differs from a
  word. app I maintain has similar function, create item, add item,
  edit, view, filter by longitude latitude and/or category
  (www.koolbusiness.com/ai) sourced montao.googlecode.com
  Sincerely
  Nick RTZ

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] income / billing (adsense gae combined)

2009-11-22 Thread niklasr
Feature request or do tell if you know implemented function that
calulcates my ROI i/o between adsense output and e.g. gae billing for
time  0. I can compute it manually registering my adsense income
relative gae billing for history and sure it's technically feasible
and appropriate for typical.
Thank you

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




Re: [google-appengine] Re: Can't get owned relationship working with JDO and subclass

2009-11-22 Thread Rick Horowitz
I discovered I cannot query (filter on) a superclass field. I described this
problem as a comment on App Engine Issue 25 -
http://code.google.com/p/datanucleus-appengine/issues/detail?id=25#c24

Anyone that knows what is going on, please reply.

Thanks very much for any help,

Rick

On Fri, Nov 20, 2009 at 10:33 AM, Rick Horowitz rickh...@gmail.com wrote:

 Well it partly worked, but enough to get by for development purposes
 for awhile, so that's pretty good. I removed datanucleus-
 appengine-1.0.3.jar from the Eclipse plugin and replaced it with
 appengine-1.0.4.RC1.jar. First, I tried my data model unchanged and it
 did not work. I got the same error message:

 Caused by: java.lang.IllegalArgumentException: can't operate on
 multiple entity groups in a single transaction. found both Element {
  type: Customer
  id: 1
 }

  and Element {
  type: Address
  id: 2

 }

 So, then I moved the reference to Address from the base class,
 Person to the subclass, Customer, and I was able to persist a
 Customer. I'm assuming that any owned relationships will only work if
 they emanate from the concrete class that you are trying to persist;
 not a superclass. But I haven't tried this with, for example, a 3
 level inheritance hierarchy, so I can't vouch for that. If I have to
 use this type of inheritance in my app, I will post another message to
 let people know how it turned out.

 In the mean time, I'm hoping that we'll see an update to fix this
 owned relationship by a superclass problem soon.

 Rick


 On Nov 20, 7:36 am, Rick Horowitz rickh...@gmail.com wrote:
  I just examined the jars in some detail and see that there is only 1
  jar changed: datanucleus-appengine-1.0.3.jar - datanucleus-
  appengine-1.0.4.RC1.jar. I'll upgrade that into the Eclipse plugin and
  do some tests. Unfortunately, my data model uses owned relationships
  from the base class, which I guess doesn't work just yet. I'll report
  back. Thanks.
 
  On Nov 19, 8:22 pm, Rick Horowitz rickh...@gmail.com wrote:
 
   Thank you for responding. This is not good, but I guess it could be
 worse.
   Google could be ignoring these problems instead of fixing them. One
 more
   question. What's the right way to install appengine-orm-1.0.4.rc1.zip
 with
   the Eclipse App Engine SDK 1.2.6? Do I just replace all the jars in the
 SDK
   with the jars from appengine-orm-1.0.4.rc1.zip?
 
   Thanks very much.
 
   Rick
 
   On Thu, Nov 19, 2009 at 5:03 PM, Ikai L (Google) ika...@google.com
 wrote:
 
The current version won't support inheritance, which may explain why
 this
isn't working. It looks like fixes for inheritance will be going out
 when
datanucleus is updated:
 
   http://code.google.com/p/datanucleus-appengine/issues/detail?id=25
 
The stack trace looks different, though, but that may be because you
 are
using a transaction, and the transaction manager is taking a look at
 the key
that is being generated and does not recognize Address as having
Customer as an ancestor.
 
I'm not sure why you need a transaction here, though. It doesn't look
 like
Customer or Address will be out of sync. You could also accomplish
 the same
thing using an embedded class, though I suppose that wouldn't work if
multiple customers had the same address and addresses changed
 frequently
(though you could solve this by updating all matching embedded
 addresses if
an address changes in a transaction, making the Address the parent of
 the
Customer).
 
-- Forwarded message --
From: Rick Horowitz rickh...@gmail.com
Date: Thu, Nov 19, 2009 at 1:44 PM
Subject: [google-appengine] Re: Can't get owned relationship working
 with
JDO and subclass
To: Google App Engine google-appengine@googlegroups.com
 
Does anyone have any idea why this won't work? I've tried every
 option
I can think of and it still doesn't work. Would really appreciate
 some
help from someone knowledgeable about JDO and gae. I'm assuming it's
pretty basic to persist a subclass object whose superclass (base
class) references an owned object, but gae doesn't seem to like it. I
tried the base class as abstract and concrete, and tried the keys as
type Key and as encoded String. No luck.
 
Thanks very much for any help.
 
Rick
 
On Nov 15, 11:40 pm, Rick Horowitz rickh...@gmail.com wrote:
 I'm trying to persist a simple class relationship using JDO. My
 code
 is listed below and here's a brief overview of what I'm trying to
 do:
 
 I have 3 classes:
 
 Person, Customer (extends Person), and Address (referenced from
 Person). If I create a Person instance and an Address instance and
 call setAddress() on Person, then call
 PersistenceManager.makePersistent(), the objects get saved
 correctly.
 
 However, if I create a Customer instance and an Address instance, I
 get the following error message:
 
 java.lang.IllegalArgumentException: can't 

[google-appengine] votay - Wordpress of GAE

2009-11-22 Thread Andrew Arrow
Hello,

I started an open source GAE project called votay.  The idea is to
make Votay the Wordpress of GAE.  There are 1000's of bloggers
paying for PHP/mysql hosting and using wordpress that would come over
to GAE if Wordpress would run here.  They would gain:

1) free hosting
2) ability to scale if their blog traffic ever spikes

You can see an example blog at

http://www.votay.com/

It's far from ready to compete with Wordpress yet.  I still have lots
of work to do on the admin interface.  But all the images and content
are being stored in a DataStore, not coming from a static folder.  I
tried to find other open source GAE blogging projects and only saw
these 7:

http://github.com/jie/jieblog
http://code.google.com/p/smalog/
http://code.google.com/p/niubi/
http://code.google.com/p/ytblog/
http://code.google.com/p/cpedialog/
http://github.com/anotherjesse/fobliki
http://bloog.billkatz.com/

Does anyone know of others I missed?  If there already is a Wordpress
like blogging system for GAE that I just don't know about, please let
me know!  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-appeng...@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=.




[google-appengine] Three questions about AppEngine datastore and benefits / cost of EntityGroups?

2009-11-22 Thread Enrique Perez
I understand EntityGroups allow you to use transaction management
across multple writes of different kinds.  This is clear benefit but I
am trying to understand some more subtle benefits/costs of using
EntityGroups.

Question 1: When you define a chain of ownership between an entity and
child entity, is the entity group defined at the root entity level or
the kind level.  For example of you have kind called Book and a
child kind Chapter defined.  If you have a Book entity named
Intro to AppEngine, and it has three child entitles, Ch1, Ch2,
and Ch3, is there 1 entityGroup containing Intro to AppEngine with
its 3 child entities or is the entityGroup at the 'book level where
it contains all entities of kind book along with all of the child
entities?

Question 2: Assuming you have an entityGroup with a chain of ownership
of 3 different kinds. Does the write throughput vary based on whether
we are using transactions or not. When Max Ross at Google I/O
described write throughput on an entityGroup being from anywhere from
1 to 10 writes per second, were these numbers based on writes using
appengine datastore transaction management or were these numbers based
on writes without transactions.

Question 3: The second question involves queries against data in an
entity group. In the relational database world, some databases allow
you to partition data within a table. The advantage of this, if done
properly, is that queries against those tables result in scans against
specific partitions (given parameters in where clause) as oppossed to
full table scans across all data in the table. The query can perform
much better with these partitions in place.  With respect to the
AppEngine datastore, do we get a performance boost with queries whose
entities all reside within a single entity group?

Thanks
Enrique Perez



--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: datastore viewer delay

2009-11-22 Thread Ian Marshall
Hi Richard,

Yes, I have found the same: updates to the data store can take a while
to be reflected in the data viewer. At first I thought I had done
something wrong or was just incompetent, and then I cheered up!

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: Why not implement a Django database backend for App Engine?

2009-11-22 Thread Hazzadous
Search the django-devel group for non-relational db for info on this
topic.  Google has apparently set aside some time for this effort.

On Nov 20, 7:34 pm, Andy Smith andys...@gmail.com wrote:
 I've started working on (or at least at this point only arguing with django
 people) this project as well, but it is still some time off so I wouldn't
 hold your breath quite yet.

 On Wed, Nov 18, 2009 at 11:11 AM, sserrano sebastian.serr...@gmail.comwrote:



  While it is a difficult task there is people trying to work around
  it.

  Follow wkornewald athttp://bitbucket.org/wkornewald/he is doing an
  excellent work

  Cheers, Sebastian Serrano

 http://www.sserrano.com

  On 18 nov, 09:54, frankabel frank.abel...@gmail.com wrote:
   Hi all,

   I'm newbie in this App Engine. As far I know, lot of Django app
   portability get solved if someone implement a  Django database backend
   for App Engine. Even I read Once queryset-refactor lands in trunk, it
   might also be possible to write a database backend for App Engine that
   would allow any app to run properly.  athttp://
  martyalchin.com/2008/apr/8/appengine/

   Somebody can explain me why isn't implemented yet such database
   backend? I, mean is a big deal? What are the main problems that ones
   must address to write such backend? If the backend exist, porting
   Django app will be more easy that using Google App Engine Helper for
   Django?

   Cheers
   Frank Abel

  --

  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-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Question on Free Stored Data Quota

2009-11-22 Thread yccheok
I have a question on the Stored Data Quota.

Google is offering us free 1GB quota for stored data. Currently, my
total data base size is 0.9 GB. (0.1 GB) left.

So, during next month, will my quota limit be reset? Will Google give
me another free 1 GB data next months? Does it means, there will 1 +
0.5GB free stored data quota next month?

Thanks!

Cheok

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Problems with Bulk Uploading.

2009-11-22 Thread Michael Robellard
I am having a terrible time getting my bulk upload to work.
It is working fine on my dev enviornment. When I try and upload to my
app I get:

[INFO 2009-11-21 23:49:48,233 bulkloader.py] Logging to bulkloader-
log-20091121.234948
[INFO 2009-11-21 23:49:48,250 bulkloader.py] Throttling transfers:
[INFO 2009-11-21 23:49:48,250 bulkloader.py] Bandwidth: 25
bytes/second
[INFO 2009-11-21 23:49:48,250 bulkloader.py] HTTP connections: 8/
second
[INFO 2009-11-21 23:49:48,250 bulkloader.py] Entities inserted/
fetched/modified: 20/second
[INFO 2009-11-21 23:49:48,250 bulkloader.py] Opening database:
bulkloader-progress-20091121.234948.sql3
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-1]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-2]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-3]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-4]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-5]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-6]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-7]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-9]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-8]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 adaptive_thread_pool.py] [Thread-10]
WorkerThread: started
[DEBUG2009-11-21 23:49:48,608 bulkloader.py] Configuring
remote_api. url_path = /remote_api, servername =
railroadempire.appspot.com
[DEBUG2009-11-21 23:49:48,608 bulkloader.py] Bulkloader using
app_id: railroadempire
[INFO 2009-11-21 23:49:48,608 bulkloader.py] Connecting to
railroadempire.appspot.com/remote_api
[INFO 2009-11-21 23:49:59,578 bulkloader.py] Authentication Failed

Here is my app.yaml file:
application: railroadempire
version: 1
runtime: python
api_version: 1

handlers:
- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin

- url: /.*
  script: environment.py

I know I am just doing something stupid, but I have been trying to get
this working for 2 hours now.

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: Question on Free Stored Data Quota

2009-11-22 Thread Brandon Thomson
No, it is 1GB total.

On Nov 22, 6:55 am, yccheok yancheng.ch...@gmail.com wrote:
 I have a question on the Stored Data Quota.

 Google is offering us free 1GB quota for stored data. Currently, my
 total data base size is 0.9 GB. (0.1 GB) left.

 So, during next month, will my quota limit be reset? Will Google give
 me another free 1 GB data next months? Does it means, there will 1 +
 0.5GB free stored data quota next month?

 Thanks!

 Cheok

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: votay - Wordpress of GAE

2009-11-22 Thread Adam
The MVC framework that I have created for AppEngine comes with a
blogging demo application. The framework, MVCEngine, is hosted on
Google Code:
http://code.google.com/p/gae-mvc-engine/

The blogging app is in the demo subdirectory. My personal blog,
blog.adamcrossland.net runs on this software.

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




Re: [google-appengine] Re: votay - Wordpress of GAE

2009-11-22 Thread OvermindDL1
On Sun, Nov 22, 2009 at 7:39 PM, Adam adam.crossl...@gmail.com wrote:
 The MVC framework that I have created for AppEngine comes with a
 blogging demo application. The framework, MVCEngine, is hosted on
 Google Code:
 http://code.google.com/p/gae-mvc-engine/

 The blogging app is in the demo subdirectory. My personal blog,
 blog.adamcrossland.net runs on this software.

For note, none of the links on your site that link to other areas of
your site work, they all show blank pages (not even the empty
htmlbody/body/html)...

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: datastore viewer delay

2009-11-22 Thread Ian Marshall
Hi Richard,

Yes, I have found the same: updates to the data store can take a while
to be reflected in the data viewer. At first I thought I had done
something wrong or was just incompetent, and then I cheered up!

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: votay - Wordpress of GAE

2009-11-22 Thread Adam
Woah! That was odd! I redeployed, and everything is OK again. I can't
imagine what had gone wrong there.

Thanks for the heads-up, Overmind.

On Nov 22, 9:44 pm, OvermindDL1 overmind...@gmail.com wrote:
 On Sun, Nov 22, 2009 at 7:39 PM, Adam adam.crossl...@gmail.com wrote:
  The MVC framework that I have created for AppEngine comes with a
  blogging demo application. The framework, MVCEngine, is hosted on
  Google Code:
 http://code.google.com/p/gae-mvc-engine/

  The blogging app is in the demo subdirectory. My personal blog,
  blog.adamcrossland.net runs on this software.

 For note, none of the links on your site that link to other areas of
 your site work, they all show blank pages (not even the empty
 htmlbody/body/html)...

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




Re: [google-appengine] Re: votay - Wordpress of GAE

2009-11-22 Thread OvermindDL1
On Sun, Nov 22, 2009 at 9:03 PM, Adam adam.crossl...@gmail.com wrote:
 Woah! That was odd! I redeployed, and everything is OK again. I can't
 imagine what had gone wrong there.

 Thanks for the heads-up, Overmind.

No problem, I know how irritating it is to have one of my sites
mysteriously stop working for no reason.  :)

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




Re: [google-appengine] Three questions about AppEngine datastore and benefits / cost of EntityGroups?

2009-11-22 Thread Robert Kluin
Enrique,
Q1: The datastore stores members of the same entity group together.  If
I correctly understand what you are asking, the entity group is defined by
the child entity itself.  In other words book does not contain chapters,
but rather each chapter knows which book (if any) is its parent.  A book
might have another book, or even a chapter, as its parent since entity
groups are just defined by keys.

Q3: I think it might depend on exactly what you are doing.  However,
everything I have read indicates that putting too much stuff in the same
entity group will not generally help your performance, but may actually hurt
it.  App engine requires you to build indexes for all of your non-trivial
queries anyway, so I think this addresses the issue you are concerned about.

Robert


On Sun, Nov 22, 2009 at 4:47 PM, Enrique Perez enrique.m.pe...@gmail.comwrote:

 I understand EntityGroups allow you to use transaction management
 across multple writes of different kinds.  This is clear benefit but I
 am trying to understand some more subtle benefits/costs of using
 EntityGroups.

 Question 1: When you define a chain of ownership between an entity and
 child entity, is the entity group defined at the root entity level or
 the kind level.  For example of you have kind called Book and a
 child kind Chapter defined.  If you have a Book entity named
 Intro to AppEngine, and it has three child entitles, Ch1, Ch2,
 and Ch3, is there 1 entityGroup containing Intro to AppEngine with
 its 3 child entities or is the entityGroup at the 'book level where
 it contains all entities of kind book along with all of the child
 entities?

 Question 2: Assuming you have an entityGroup with a chain of ownership
 of 3 different kinds. Does the write throughput vary based on whether
 we are using transactions or not. When Max Ross at Google I/O
 described write throughput on an entityGroup being from anywhere from
 1 to 10 writes per second, were these numbers based on writes using
 appengine datastore transaction management or were these numbers based
 on writes without transactions.

 Question 3: The second question involves queries against data in an
 entity group. In the relational database world, some databases allow
 you to partition data within a table. The advantage of this, if done
 properly, is that queries against those tables result in scans against
 specific partitions (given parameters in where clause) as oppossed to
 full table scans across all data in the table. The query can perform
 much better with these partitions in place.  With respect to the
 AppEngine datastore, do we get a performance boost with queries whose
 entities all reside within a single entity group?

 Thanks
 Enrique Perez



 --

 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-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=.




--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] Re: Why not implement a Django database backend for App Engine?

2009-11-22 Thread Hazzadous
From the django devel group: http://tinyurl.com/y9gpf55

This is probably the most up to date/informative info on non-
relational db support for Django?

On Nov 20, 7:34 pm, Andy Smith andys...@gmail.com wrote:
 I've started working on (or at least at this point only arguing with django
 people) this project as well, but it is still some time off so I wouldn't
 hold your breath quite yet.

 On Wed, Nov 18, 2009 at 11:11 AM, sserrano sebastian.serr...@gmail.comwrote:



  While it is a difficult task there is people trying to work around
  it.

  Follow wkornewald athttp://bitbucket.org/wkornewald/he is doing an
  excellent work

  Cheers, Sebastian Serrano

 http://www.sserrano.com

  On 18 nov, 09:54, frankabel frank.abel...@gmail.com wrote:
   Hi all,

   I'm newbie in this App Engine. As far I know, lot of Django app
   portability get solved if someone implement a  Django database backend
   for App Engine. Even I read Once queryset-refactor lands in trunk, it
   might also be possible to write a database backend for App Engine that
   would allow any app to run properly.  athttp://
  martyalchin.com/2008/apr/8/appengine/

   Somebody can explain me why isn't implemented yet such database
   backend? I, mean is a big deal? What are the main problems that ones
   must address to write such backend? If the backend exist, porting
   Django app will be more easy that using Google App Engine Helper for
   Django?

   Cheers
   Frank Abel

  --

  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-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.




[google-appengine] View this page Google App Engine Open Source Projects

2009-11-22 Thread Jason (Google)
Added Votay

Click on 
http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects
- or copy  paste it into your browser's address bar if that doesn't
work.

--

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-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.