[appengine-java] Why is guestbook-example-fts (full text search) example working but mine is not?

2010-10-10 Thread arny
Hi,

I'm really confused about the AppEngine database index limits.

My project is using 15 tokens to index some content.
I'm using the index then to self-join it up to 3 times.
Then my index looks like this: isOnline ▲ , searchIndex ▲ ,
searchIndex ▲ , searchIndex ▲ , normalizedName ▲

isOnline = boolean
searchIndex = list (max 15 items)
normalizedName = string

Now as soon I add another searchIndex or another property to the
indexes I get an error when AppEngine is trying to build the indexes.

-- BUT --

Then again I'm looking at the 
http://code.google.com/p/guestbook-example-appengine-full-text-search/
example which was mentioned by Googles AppEngine Team.
This project is using 200 tokens to index! and self-joining it up to 5
times!

How is that possible and what I am doing wrong?
I need at least one more property to be added to the index.

Thanks

-- 
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] Re: Remove properties from existing data

2010-10-10 Thread arny
Both information were very helpful!
Problem solved.
Thanks!

On Oct 7, 7:16 pm, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 An easy way to iterate over all your entities is with the Mapper API:

 http://googleappengine.blogspot.com/2010/07/introducing-mapper-api.html

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger:http://googleappengine.blogspot.com
 Reddit:http://www.reddit.com/r/appengine
 Twitter:http://twitter.com/app_engine

 On Thu, Oct 7, 2010 at 10:11 AM, Didier Durand durand.did...@gmail.comwrote:



  Hello,

  You have to go down to low-level datastore api to do that: see
  Entity.removeProperty()

  See
 http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

  didier

  On Oct 7, 2:06 pm, arny arny...@googlemail.com wrote:
   Hello,

   I've been looking for a way to remove unused properties from existing
   data for a while but could not find the right information yet.
   Everyone is talking about what should not be done, but no one is
   giving any ideas how to remove.

   So I can't set NULL, since it's a value as well and gets stored.
   So how to get rid of unused properties then?

   On python there is delattr to remove a property completely.
   On Java there is ... ?

   Thanks

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

-- 
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] Remove properties from existing data

2010-10-07 Thread arny
Hello,

I've been looking for a way to remove unused properties from existing
data for a while but could not find the right information yet.
Everyone is talking about what should not be done, but no one is
giving any ideas how to remove.

So I can't set NULL, since it's a value as well and gets stored.
So how to get rid of unused properties then?

On python there is delattr to remove a property completely.
On Java there is ... ?

Thanks

-- 
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] Object Manager has been closed on 2 synchronous requests

2010-04-08 Thread Arny
Hi,

I'm getting an JDO/Nucleus exception when running 2 synchronous
requests on different ids of an object:
org.datanucleus.exceptions.NucleusUserException: Object Manager has
been closed

---
This is how my getById looks like:

PersistenceManager pm = getPM();
Stream stream = null;
try {
Stream tmp = pm.getObjectById(Stream.class, id);
stream = pm.detachCopy(tmp);
} finally {
pm.close(); // here the exception occurs
}
return stream;

---

It works fine on single request, but fails on 2 or more.
anyone know how to get around this?

Thanks

-- 
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] Re: Object Manager has been closed on 2 synchronous requests

2010-04-08 Thread Arny
Hmm, does it really matter even when using detached objects?
And aren't the persistence managers created individually on each
request?
I didn't know they are shared over many requests?

What's the best way to update about 20 objects synchronously using 20
asynch urlfetches?
It needs to be urlfetches, because the 20 objects are getting updates
from an urlfetch again.

Simple model:
- call 20 urls with individual ids
- each url gets an objects and gets its updates from another url

Any good solution for that?
Thanks

On Apr 8, 3:13 pm, bimbo jones bimbojone...@gmail.com wrote:
 hi,

 you should only close the persistence manager when your done.
 This error occurs because you try to close it a second time.
 Once you do the pm.close() all the data will be updated

 2010/4/8 Arny arny...@googlemail.com

  Hi,

  I'm getting an JDO/Nucleus exception when running 2 synchronous
  requests on different ids of an object:
  org.datanucleus.exceptions.NucleusUserException: Object Manager has
  been closed

  ---
  This is how my getById looks like:

                 PersistenceManager pm = getPM();
                 Stream stream = null;
                 try {
                         Stream tmp = pm.getObjectById(Stream.class, id);
                         stream = pm.detachCopy(tmp);
                 } finally {
                         pm.close(); // here the exception occurs
                 }
                 return stream;

  ---

  It works fine on single request, but fails on 2 or more.
  anyone know how to get around this?

  Thanks

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



-- 
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] Re: Object Manager has been closed on 2 synchronous requests

2010-04-08 Thread Arny
I could find my mistake.
Sorry for taking your time.

Thanks anyway!

On Apr 8, 3:24 pm, Arny arny...@googlemail.com wrote:
 Hmm, does it really matter even when using detached objects?
 And aren't the persistence managers created individually on each
 request?
 I didn't know they are shared over many requests?

 What's the best way to update about 20 objects synchronously using 20
 asynch urlfetches?
 It needs to be urlfetches, because the 20 objects are getting updates
 from an urlfetch again.

 Simple model:
 - call 20 urls with individual ids
 - each url gets an objects and gets its updates from another url

 Any good solution for that?
 Thanks

 On Apr 8, 3:13 pm, bimbo jones bimbojone...@gmail.com wrote:

  hi,

  you should only close the persistence manager when your done.
  This error occurs because you try to close it a second time.
  Once you do the pm.close() all the data will be updated

  2010/4/8 Arny arny...@googlemail.com

   Hi,

   I'm getting an JDO/Nucleus exception when running 2 synchronous
   requests on different ids of an object:
   org.datanucleus.exceptions.NucleusUserException: Object Manager has
   been closed

   ---
   This is how my getById looks like:

                  PersistenceManager pm = getPM();
                  Stream stream = null;
                  try {
                          Stream tmp = pm.getObjectById(Stream.class, id);
                          stream = pm.detachCopy(tmp);
                  } finally {
                          pm.close(); // here the exception occurs
                  }
                  return stream;

   ---

   It works fine on single request, but fails on 2 or more.
   anyone know how to get around this?

   Thanks

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



-- 
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] Re: URLFetch to localhost counts as out/inbound traffic?

2010-04-06 Thread Arny
Anyone did some testing whether it's increasing the in/outbound
traffic?

On Apr 5, 3:55 pm, Arny arny...@googlemail.com wrote:
 Hi,

 are the URLFetches to localhost count as in/outbound traffic?

 Regards

-- 
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] URLFetch to localhost counts as out/inbound traffic?

2010-04-05 Thread Arny
Hi,

are the URLFetches to localhost count as in/outbound traffic?

Regards

-- 
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] Re: Database cursor for back cursor?

2010-04-03 Thread Arny
But isn't it getting slower and slower on higher pages, since it
fetches ALL data (according to docs) and discards the offset value?
So Range(0,10) is faster than Range(1,10) ?

Anyone did some performance tests?
Regards

On Apr 3, 7:49 am, John Patterson jdpatter...@gmail.com wrote:
 Probably you should set an offset and limit instead for your paging.  
 I believe cursors are really intended for processing a lot of data off-
 line.  Remember there is no longer a 1000 result limit on fetches.

 On 3 Apr 2010, at 02:57, Arny wrote:

  Hi,

  Is there a way to get a cursor to page back to a previous page?
  If not, whats the point of paging forward only? I'm not building an
  ajax page.

  Regards

  --
  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 
  athttp://groups.google.com/group/google-appengine-java?hl=en
  .



-- 
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] Re: Appstats not working. /stats = 404

2010-04-02 Thread Arny
Thanks, that worked!

No idea why it is redirecting to /stats

Regards,
Arny

On Apr 3, 2:16 am, Alexander Orlov alexander.or...@loxal.net wrote:
 You should be redirected to /appstats/stats. Try to call this URL
 manually after you're authenticated as admin user.

 - Alex

 On Apr 3, 2:10 am, Arny arny...@googlemail.com wrote:

  Hi,

  I'm trying to get Appstats to work with no success.
  Added all the lines specified in the docs to my web.xml

  After signing in at /appstats, I'm getting a redirection to /stats,
  but there I get not found 404 error.
  I'm using appengine 1.3.2.

  Did I miss anything?

  Thanks
  Regards
  Arny



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