Near the line
q.setRange(pageModel.getStartPos()-1, pageModel.getEndPos());
in your findByType(...) method
have you tried checking the values
pageModel.getStartPos() - 1
and
pageModel.getEndPos()
just to verify that they hold valid values?
You could also try
q.setRange(0, 1);
Just add a Tags list to User and a User list to Tag. This way you can
search for Users with a given tag or Tags that has been used by a
given user. Its still the same structure you just add another set of
lists. If you do this, you will be able to quickly process each query
you listed in your
hie
any updates on this please?
Thankx and Regards
Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com
On Wed, Jan 5, 2011 at 9:58 AM, Vik vik@gmail.com wrote:
Hie
Thanks..
This worked for me. But how do i print the complete query executed in the
logs when this approach is used?
This isn't possible in my case because the geocoding is part of the
data generation process.
On Jan 19, 7:02 pm, Matt Farnell mfarn...@gmail.com wrote:
I'd suggest you do the geocoding on the clients browser and pass the
results back to your server if you need them.
On Wed, Jan 19, 2011
Hi guys,
What is the best way to batch time-non-critical datastore operations?
The use case is the following:
In my app users can perform certain actions, which result in news
items being generated: 0 - 4 per action, depending on the action.
Currently I put them immediately to the datastore in a
According to:
http://code.google.com/appengine/docs/java/datastore/jdo/queries.html#Queries_on_Keys
We are suppose to be able to get Key only query. But according to
this:
http://groups.google.com/group/google-appengine/browse_thread/thread/c9ef645f0f77a53e
Key only result doesn't work. Has
Yes, it works. I use key only queries a lot. I could help more if you
posted the code with the query.
On Wed, Jan 19, 2011 at 6:52 AM, Kenny yuyeung...@gmail.com wrote:
According to:
http://code.google.com/appengine/docs/java/datastore/jdo/queries.html#Queries_on_Keys
We are suppose to be
Hi,
I don't see how you will save: puts are unitary actions - they can
not be optimized like queries for big sets of data. By using a task,
you will add the cost of saving / starting / running a task to the
cost of your put operation that you will do anyway.
In addition, you may even generate
I have the next problem:
My app has thousands of users. Every user has money that can be
represented as the money field in the User entity. If a payable
event occurs in the app then I have to make a payment between two
users so I need to update money fields for two User entities in a
transaction.
Hi,
The usual way is to launch a task included in the 1st transaction for
the second update.
See
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Tasks_Within_Transactions
You have the guarantee that the task is enqueued only if the 1st
update succeeds. What is not guaranteed
You have to use distributed transaction as described in
http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine
The example is in python, but it can be easily rewritten in java.
--
You received this message because you are subscribed to the Google Groups
Google App Engine for
I keep getting an
java.lang.IllegalArgumentException: Unknown error.
when trying to use:
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/images/ImagesService.html#getServingUrl(com.google.appengine.api.blobstore.BlobKey)
I am feeding getServingUrl() a legitimate
First of all, thanks very much for quick and reasonable replys!
--What is not guaranteed though is a rollback on the
--1st update if the second fails or can't happen
But it is guaranteed that the 2nd update can be rolled forward once to
infinity or the 1st update can be rolled back(probably via a
re: how do i print the complete query executed in the logs when
this approach is used?
Simple. Print the query string and then print the parameters.
On Thu, Jan 20, 2011 at 6:35 AM, Vik vik@gmail.com wrote:
hie
any updates on this please?
Thankx and Regards
Vik
Founder
I just came across this document:
http://www.scribd.com/doc/24330945/No-Relation-The-Mixed-Blessings-of-Non-Relational-Databases
It helps, but doesn't completely answer my question. It would appear that
what I'm wanting to do is an EAV (entities/attributes/values) type
relationship, however,
Well That's fine But I would be more interested in logging the exact
query fired by engine instead of separately printing individual stuff.
The individual printing these elements this way is painful as well in the
development process. So, any better way to print the query exactly fired by
Hi,
Your your way of rolling back: yes, second task and infinity for limit
and that should do it.
My only worry was about the semantics: some operations can't be rolled
back as easily as a subtraction if you just made an add. If your
calculations are more complex it may some time be hard to roll
I am receiving UTF-16 characters I must register in the database. Right now,
it seems to convert into UTF-8. I am using JPA+annotation
Any help appreciated
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this group, send
So you want to be able to find all URL's saved by a User that have a
certain Tag? Or, all the Users that have Tagged Tech to a URL? Or,
all the Tags given a URL by a certain User?
This can be done with our Model. It's actually what the second part
of the video in the link is about.
Merge Join
I have an email handler that does the following:
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
MimeMessage message = new MimeMessage(session, req.getInputStream());
String content = getContent(message);
where getContent is:
private String
I think that now I understand why something so simple created so much
misunderstanding!
Get statement in high replication datastore shouldn't be transactional by
default (actually datastore settings should be set to eventual consistency
by default) . This is reason why there is some confusion
The status page shows nothing so I have no choice but to ask here...
For the last few hours, 15% of the requests end with DeadlineExceededError
on db get() or put(). Anyone else having the same database issue? All
errors have the below message at the end:
A serious problem was encountered
Thanks for the info Nick and Robert; I actually have been using that
exact talk to tweak my app and it's been extremely useful.
One more thing I wanted to ask: the way I've been structuring the
auction type setup is through a Task object that creates a custom
class I've built that basically
For academic research I might be sugesting to use google app engine for a
NTRIP Caster.
A NTRIP caster is a application that receives a data stream over HTTP and
allows any connected client, possibly several, to also receive the same
stream over HTTP.
This means that HTTP connections will
I've been noticing lately a lot of errors like this when trying to update
several entities at once via db.put(entities). Here is the full stack trace.
There is a strange warning at the bottom regarding exceptions during
initialization but I can't find any exception, etc in the logs. I've
No I dont think this will work on AppEngine. Firstly if your scripts
regually take so long, AppEngine wont scale your application - it likes
handlers to respond in less than 800ms or so.
But also can't really 'stream' - in general, it works on the CGI model. Your
application receives the whole
On Jan 20, 3:13 pm, Barry Hunter barrybhun...@gmail.com wrote:
But also can't really 'stream' - in general, it works on the CGI model. Your
application receives the whole request as one whole block, and the client
receives your output. Ie there is a proxy in front of the application that
only
I don't see why you wouldn't want to give this a try. Nothing wrong with
cooking up a prototype.
Offline processes can run for 10 minutes, so you have some wiggle room when
dealing with importing streams into your app.
Maybe you could stream from the Blobstore. There are indications that
On 20 Jan, 15:54, Eli Jones eli.jo...@gmail.com wrote:
Offline processes can run for 10 minutes, so you have some wiggle room when
dealing with importing streams into your app.
I don't see how to use offline processes for anything - I need to be
receiving the data all the time, and sending it
We have an index that appears to be stuck in the building state. It has not
moved beyond 0 for almost 24 hours. The app name is 'steprep'
I wonder if someone at google could check this out for us?
Thanks
--
You received this message because you are subscribed to the Google Groups
Google App
Perfect - thank you!
On Jan 18, 7:54 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
Hi Jawon,
You can do this by using an API call hook, like so:
def urlfetch_timeout_hook(service, call, request, response):
if call != 'Fetch':
return
# Make the default deadline 10
I am using GAE 1.4.0 for Java. I have a JDO-annotated java class
(Recipe) with a repeating String property (TagID). I have tried to
generate a datastore index that would allow me to apply multiple
filters to this property so that, for instance, I can find all Recipe
instances that have Tag value
Hello,
I am creating a new directory page to list Merchandise. The /dir/
dhp.html page has these links:
ul
libMerchandise/b/li
ul
lia href=/dirTshirts/a/li
lia href=/dirMugs/a/li
lia href=/dirPosters/a/li
/ul
libArticles/b/li
libVideo/b/li
/ul
/dir is handled by the Directory handler which will
On Jan 18, 11:27 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
...
pass the continue URL in to the handler,
or have separate URLs based on the origin,
or use AJAX ...
Thanks. I notice the problems that you mentioned when I test the app.
Can you help with some more specific
Hi,
We are in the process or upgrading to SDK 1.4.1, one of the features
we were looking for was the django initialization from the
app_config.py, per SDK log:
Allow Django initialization to be moved to appengine_config.py to
avoid Django version conflicts when mixing webapp.template with pure
mmm first. Navigators nevers send the text of the link, so you cannot
get it anyway.
Second, you're using literals instead of variables. This line:
items.filter(type =, merchandise_type)
must be:
items.filter(type =, merchandise_type)
There are a great difference between the string
+1
On Jan 20, 5:54 am, Raymond C. windz...@gmail.com wrote:
The status page shows nothing so I have no choice but to ask here...
For the last few hours, 15% of the requests end with DeadlineExceededError
on db get() or put(). Anyone else having the same database issue? All
errors have the
Hey guys, below is the transcript for January 19th, 2011 office hours. I
wanted to thank Robert Kluin and Mike Wesner for helping out!
--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter:
I read in the site that Google checkout is only possible with a
regular individual Google account. I just migrated my Google Apps
domain, among other improvements I now see that it allows many
services including Google Checkout.
So I am wondering is the stated restriction still in place for even
Hey guys,
I know this is an old subject, but I'm bringing it up again because reports
are still trickling in that Bezeq International customers are still having
issues connection to *.appspot.com. If you are a Bezeq international
customer and experience connectivity issues with appspot.com, can
Set up a cheap proxy elsewhere. The smallest rackspace cloud instance
is $11/mo.
Jeff
On Wed, Jan 19, 2011 at 8:19 PM, culov cul...@gmail.com wrote:
I've been geocoding from GAE for over a year now and I've only had
these issues sporadically, especially after server maintainence.
Hi Richard,
This occurs because the dev_appserver is single-threaded, and so the SDK
implementation of the Channel API can't get any data until the task finishes
executing.
Why do you want to spend time waiting in a task? Why not kick off a new task
when you get new data from the user, send the
I develop web application by using Python,Zope Page
Template,googleappengine .I create check box using tal repeat
statement that repeat the item contains in list. This list item is
given as value of check box.
Issue is to give name to checkbox other than list itam.
How can I give different name
Hi Raymond,
You might want to star issue 2378.
http://code.google.com/p/googleappengine/issues/detail?id=2378
Robert
On Wed, Jan 19, 2011 at 19:13, Raymond C. windz...@gmail.com wrote:
AppEngine team notified us the Increased Datastore Latency issue happened
on the datastore,
Hi,
I've been running robustly on appengine for the last several months, with a
lot of work done by my taskqueue workers. ( tasks are querying data using
the twitter apis )
Since the last few days, a lot of my tasks are piling up and staying in the
queue for extended time periods. I don't see
I agree, the docs really should elaborate on this topic in general.
1) As I understand, it is because the updates within an entity group
are strongly consistent, whereas updates across entity groups may not
be. When you try to read the data with an ancestor, it will all be
read from the same
code-red
--
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-appengine@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.com.
For more options,
How will you get the data? Will you fetch it or will it be sent to your app?
Either way, the data will not be sent to your code until the
connection has completed. So you will not really be able to 'process
line by line.'
What are your clients? If they are browsers, while you are processing
Hi,
If you are still looking for an alternative custom database software, for
use with Google Apps, I welcome you should check out the app I am building
over Google App Engine : iFreeTools Creator http://creator.ifreetools.com.
Some sample walk-through posts for building custom database apps
49 matches
Mail list logo