On Jul 27, 5:24 pm, Bill bill.milli...@gmail.com wrote:
Not in order, it can't. The parent must know the children in order to
accomplish that.
Try putting some kind of index in the child - a time stamp or order
field (100, 200...)
Sounds like you have architected your solution to do too
BTW, should it not be necessary to minimise dependencies? Would love
some more details on how this should work! e.g. do you load an entire
jar on demand from some shared repo based on a hash - or individual
classes?
On Jun 22, 10:39 am, John Patterson jdpatter...@gmail.com wrote:
Hi Toby,
Hi Manish,
You might want to try the RemoteDatastore to download or upload you
data to a remote application.
http://code.google.com/p/remote-datastore/
You install it somewhere that will only be run once like this:
// install api proxy in app init code
RemoteDatastore.install();
// divert the
/python/datastore/transactions.h...
On Fri, Jun 4, 2010 at 5:45 PM, JD liva...@gmail.com wrote:
After debugging, I was able to get rid of the exception by removing a
pm.newQuery() which was happening on a different entity group.
To me this is a bug in App Engine, as there is no reason
be
frustrating.
-C
On Jun 3, 6:33 am, JD liva...@gmail.com wrote:
I added a call to flush() after every change on the PM-managed object,
but that did not help.
Also doing a pm.flush() does not throw this exception, but doing a
pm.close() does - which seems to be contrary to your
entity
group as multiple flushes won't be very efficient.
-C
On Jun 2, 8:26 pm, JD liva...@gmail.com wrote:
I have a PersistenceManager
PersistenceManager pm = PMF.get().getPersistenceManager();
which I use to do a bunch of operations on different objects, but
WITHOUT transaction (run
Yep, many to many relationships work well. They can also be
polymorhic and use inheritance with no problems.
On May 3, 12:09 am, Michael Shtelma mshte...@gmail.com wrote:
Hi all,
I have looked at twig, I liked it a lot, but there is one issue about many
to many relationships. Does Twig
On May 2, 2:40 pm, jtuchscherer jtuchsche...@gmail.com wrote:
John, are you saying that Twig, Objectify, SimpleDS, Slim3 and Siena
don't have this problem?
I can only definitivly speak for Twig but I am certain that the others
also would not suffer this problem or many many of the other
On May 4, 12:02 am, Michael Shtelma mshte...@gmail.com wrote:
When I have tried using them, I got really strange exception.
Twig was not able to determine the key for some dependent entities...I think
I was doing smth wrong...
Ah yes, when you have circular references and you use auto
On Mar 24, 3:53 am, Keith Platfoot kplatf...@google.com wrote:
It is still possible to
use the Google Plugin for Eclipse with an App Engine project, but it may
require a few hacks or manual steps in order to keep the runtime WAR
directory in sync with your changes.
I found this Eclipse
I'm getting this exception trying to use GAE to login in my local
environment.
java.lang.NullPointerException
at
com.google.appengine.api.users.dev.LoginCookieUtils.encodeEmailAsUserId(LoginCookieUtils.java:
89)
at
I am enqueuing tasks within a transaction.
tx.begin()
for (int i=0;i10;i++) {
Queue queue = QueueFactory.getDefaultQueue();
TaskOptions task = url(/taskurl);
task.param(param, value);
queue.add(task);
}
tx.commit();
I constantly get TransactionalTaskException when enqueuing task
Is there anyway to get the application version (from appengine-
web.xml) ?
In python the version is put in os environment, wondering if java has
something similar.
Thx
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to
I try to install the plugin for eclipse through eclipse's install new
software, however after it resolves dependencies and asks me to accept
the license, it hangs at 4% during the install. Eclipse itself
doesn't hang, but the install never moves past 4%. I've let it sit on
the install for about
is not compatible with
com.google.appengine.api.datastore.Transaction expected by the task
queue API.
Is this a bug ?
JD
--
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
There is no event mechanism with memcache. You would need to store
items in memcache and the datastore at the same time. If memcache
doesn't have it check the datastore.
On Jan 18, 4:44 am, Andrei gml...@gmail.com wrote:
Is there a way to code Memcache that would notify when particular
entry
You can iterate over _more_ than 1000 results.
From the horses mouth (sorry Don):
http://groups.google.com/group/google-appengine-java/browse_thread/thread/4dc3cd9e6113fe16#
On Jan 17, 11:58 pm, Paul Jacobs paul.r.jac...@gmail.com wrote:
Can I get a quick confirmation?
The 1000 entity limit
Just String#toLowerCase() the key when you store them
On Jan 17, 1:11 am, sahil mahajan sahilm2...@gmail.com wrote:
I am using String as primary key in JDO. But it is case sensitive. It
considers name and NAME as different. Can I make it case sensitive?
--
Regards
Sahil Mahajan
--
You
You cannot create a data model in JDO-GAE that is agnostic of its
environment.
Twig allows your domains classes to use any key type you want or even
none at all.
class Parent
{
String name;
@Entity(relation=child) Child child;
}
class Child
{
String name;
}
This will be correctly
-valued property
so you can even query properties them like show all tables with a
column named 'age'.
more info and the source here: http://code.google.com/p/twig-persist/
JD
On Jan 15, 10:35 am, Joel Weight digitalj...@gmail.com wrote:
Wow, biggest code review ever for me. As a disclaimer
the instance. Usually this is not needed because Twig
can use the generic type of the Field to know that the Collection is
of C's.
JD
On Jan 15, 3:59 am, Federico Keen federicok...@gmail.com wrote:
Hi guys, I'm trying to use the datastore with a model like this:
Class A extends C
Hi,
From a task servlet I catch DeadlineExceededException put another task
on the queue to continue the work. This was working well until a few
days ago - recently it has been throwing a HardDeadlineExceededError
after the new ask is added to the queue resulting in many tasks
executing (i.e. the
Tasks can use 30 seconds before a DeadlineExceededExecption is
thrown. What you are seeing is a task being fired while your
application is loading. If your app takes more than 10 seconds to
load you can get these. The only solution is to improve the startup
time of your app which can be a very
To avoid these long loading requests you can either make your app
faster to load or keep it warm by pinging a page with a cron job, say
every minute. Cron jobs will only work on the default (live) version
so I wrote a PingTaskServlet that simply places another task in the
queue and finishes.
On
Hi, Should the QuotaService be working? I always get 0 for
getCpuTimeInMegaCycles()
--
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
I use a task to ping itself every minute... no need to use external
servers. I find that one minute seems enough but that occasionally
there are still loading requests as Google serves my request from a
different server - maybe to rebalance load? The app is much more
responsive now but I assume
A pure GWT application is a lot less demanding on server side
resources as most of the UI processing is off loaded to the client.
Also, a problem that I have run into with running a traditional web
framework on GAE is that loading requests can take a long time and
cause requests to be aborted (if
Could you not split your query into two? The first to find the parent
and the second to return all children with an ancestor query.
Alternatively, Twig makes embedding objects very simple. If you use
the AnnotationTypesafeDatastore you can achieve the above with a
single annotation:
@Component
If your cron job has to wait longer than 10 seconds while your app is
reloading you will get this message. Do you also see a loading
request in the logs just after or before this error message? If so
then it is interesting that despite your 1 minute ping, engine is
still swapping out your app.
Hi, task queues are just a way to call a url some time in the future.
As Jason mentioned above, for a tasks handler you should probably
just create a servlet (extend HttpServlet) because you do not need to
generate a nice webpage as the result of the call - no one will see
it. In the
add to your startup time. Are you initializing
anything on startup?
On Tue, Dec 8, 2009 at 10:29 PM, jd jdpatter...@gmail.com wrote:
Hi,
My application takes over 10 seconds on loading requests to output its
log messages. During this time, simultaneous requests are aborted
because
Hi,
My application takes over 10 seconds on loading requests to output its
log messages. During this time, simultaneous requests are aborted
because they cannot be serviced within the 10 second limit.
What is the best way to optimise startup time? I have already turned
on precompilation. Is
Another benefit is that you can do an ancestor query without a kind.
i.e. show all descendants of an entity regardless of their kinds.
Also you can query for descendants regardless of whether they are
direct descendants (children) or not (e.g. grandchildren). I guess
you could simulate the last
Hi,
While working on my latest project I created a small framework as an
alternative to using JDO for storing objects in the datastore. I've
called it Twig and made it open source to share the love. I hope it
can save others as much time and frustration as it has saved me.
Hi, is it possible to delete all entities from the datastore? I can
see how I can delete entities from a single kind at a time but do not
know how to query for all kinds or list all kinds.
Thanks,
John.
--~--~-~--~~~---~--~~
You received this message because
?
On Tue, Sep 22, 2009 at 6:36 AM, jd jdpatter...@gmail.com wrote:
Hi,
I am testing my app locally and finding that storing entities is very
slow. I have less than 500 entities of and the time to persist the
datastore seems to be increasing:
INFO: Time to persist datastore: 43293
Hi,
I am testing my app locally and finding that storing entities is very
slow. I have less than 500 entities of and the time to persist the
datastore seems to be increasing:
INFO: Time to persist datastore: 43293 ms
Then occasionally I get an exception:
Caused by:
the Eclipse plugin for those. That means configuring maven to use
the /war folder.
Now at least I get the enhancer running incrementally and can deploy
at the click of a button.
JD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi,
I have a structure similar to this this:
class Zoo
{
Animal animal;
}
class Zebra implements Animal
{
}
class Donkey implements Animal
{
}
All classes are annotated as PersistenceCapable etc and enhanced. I
get this error:
javax.jdo.JDOUserException: Field animal is declared as a
Hi,
I want to create an owned one to many relationship where the key for
the parent is auto generated.
Is this possible to to in a single transaction? Or do I need to
commit the parent first so I can then get its key and set the parent
key on the child?
Thanks,
John
Hi,
I am getting an error Caused by:
org.datanucleus.exceptions.ClassNotPersistableException: The class
com.example.Update is not persistable
The datanucleus console shows this:
DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
DataNucleus Enhancer completed with success for 4
Figured it out:
On my mac the enhancement log goes to /var/folders/T4/
T4W7RbfJF0CmVJO2UEnIIU+++TI/-Tmp-/
Also, to fix my problem I just needed to add a new folder to in
Eclipse to the ORM settings panel.
Cheers,
John
--~--~-~--~~~---~--~~
You received this
42 matches
Mail list logo