[appengine-java] Re: Full-text search engine and its indexes

2011-10-06 Thread Nichole
Not sure what your search server does, but presumably the user enters keywords and you search through your file based pre-prepared 'indexes' of file offset and keywords to return information to locate the word within the text? Since you don't have direct access to big table and are not wanting to

[appengine-java] Help with sharded counters and loading results.

2011-10-06 Thread Liang Ding
how many shard counters for a single product entity you made? i think we should consider the time for writing and retrieving, which one is the most important for this app. On Thursday, October 6, 2011, dnkoutso dnkou...@gmail.com wrote: I have an Android client that deals with product items and

Re: [appengine-java] Help with sharded counters and loading results.

2011-10-06 Thread dnkoutso
We have 5 shard counters per product. Both are importantI would say retrieving perhaps more important. Each shard counter is in a transaction when it is about to be incremented. I use this for representing most viewed products --- most popular products. Thanks! -- You received this

[appengine-java] Re: Full-text search engine and its indexes

2011-10-06 Thread Nichole
B.T.W. if you choose a method closer to 'using the most number of entities' above, just keep in mind that your key names should be scalable too if you will be adding entities to a range. The 2 parts which are needed for your binning are a parent key and your entity key. Your parent (ancestor) key

[appengine-java] Re: Help with sharded counters and loading results.

2011-10-06 Thread Gerald Tan
I've not personally tried it before, but a possible alternative to shard counters is increment logs. Basically, you store the count with your entity, and each time you need to increment the count you will instead store an new increment entry that references the entity that needs to be

Re: [appengine-java] Re: Read appengine file and save it's contents into a byte[]

2011-10-06 Thread Stefanos Antaris
Thanks Gerald. That worked great. On Tue, Oct 4, 2011 at 6:46 PM, Gerald Tan woefulwab...@gmail.com wrote: FileReadChannel implements http://download.oracle.com/javase/6/docs/api/java/nio/channels/ReadableByteChannel.html You should be able to figure out it out from there -- You received

[appengine-java] unable to send an email with attachment

2011-10-06 Thread Stefanos Antaris
Hi to all, i am using app engine mail service but i cannot send any mail which contains attachment. Above is the code that implements the mail handler and the exception that i get. I get the exception while trying to send the message using the Transport.send(msg) method. Mail.java /** *

Re: [appengine-java] GeoPt vs. two floats

2011-10-06 Thread John Patterson
You can actually store a coordinate accurate to about 1 meter in a single long value (32 bits each axis). This can be an important saving if you are indexing a lot of locations. Think of the long value as pointing to a block of earth at any degree of accuracy you want. You can then query for

[appengine-java] Re: Mobile subdomain in app engine

2011-10-06 Thread WillSpecht
Things will be slightly different on the mobile site. I have checked out jquery mobile and its how I want to write the mobile site. I think the layout of the two sites will be too different to do on one page. On Oct 5, 9:49 pm, Nichole nichole.k...@gmail.com wrote: Have you thought of

[appengine-java] Re: Quick way to delete datastore entities?

2011-10-06 Thread Jose Montes de Oca
If you would like to delete ALL entities of a particular kind your best bet is the Datastore admin. How did you enabled the Datastore admin? through the Admin Console? or adding the builtin on your app.ymal. file? Best, Jose Montes de Oca -- You received this message because you are

Re: [appengine-java] Help with sharded counters and loading results.

2011-10-06 Thread Liang Ding
stores the sum count as a property of a product entity, updates it with a cron job maybe a teade off solution On Thursday, October 6, 2011, dnkoutso dnkou...@gmail.com wrote: We have 5 shard counters per product. Both are importantI would say retrieving perhaps more important. Each

Re: [appengine-java] Help with sharded counters and loading results.

2011-10-06 Thread Ikai Lan (Google)
I solved this problem by spinning off a task queue with an ETA of 1-5 minutes that would flush the total count into a different entity. The tradeoff is that count totals are delayed and it's not even close to real time, but the advantage is that it gets the best of both worlds: This code lab is

[appengine-java] Re: Quick way to delete datastore entities?

2011-10-06 Thread Ronoaldo José de Lana Pereira
If you have multiple logins enabled, or if you are not the app owner, I guess that the datastore admin page won't open. Try accessing the url of the built-in directly: http://ah-builtin-python-bundle-dot-latest-dot-YOUR APP ID HERE.appspot.com/_ah/datastore_admin/ Hope this helps, - Ronoaldo

[appengine-java] Re: [appengine-python] Re: Prerelease SDK 1.5.5 available for download!

2011-10-06 Thread Alfred Fuller
XG transactions will have no effect on global queries, as the fundamental problems still remains (namely that it is impossible to know what entity groups will/should appear in a global query). Additionally you should not use this read_policy, it has little effect in M/S and no effect in HRD. On

[appengine-java] Re: Quick way to delete datastore entities?

2011-10-06 Thread J
Thanks, that worked for me! Question: I believe that using the datastore admin still counts against your quota. Is that correct? Nevertheless, since the old pricing/quotas are still in effect, this shouldn't matter right because all of the datastore related quotas are unlimited under old

[appengine-java] Re: Quick way to delete datastore entities?

2011-10-06 Thread Ronoaldo José de Lana Pereira
I guess that you still is billed by the CPU hours consumed by the datastore operations. That means that you have unlimited datastore operations, but they will bi billed as cpu_hours. Best Regards, -Ronoaldo -- You received this message because you are subscribed to the Google Groups Google

[appengine-java] Re: Quick way to delete datastore entities?

2011-10-06 Thread J
Ah yes, that's true. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/i26_WR0SRaQJ. To post to this group, send email to

[appengine-java] Re: Mobile subdomain in app engine

2011-10-06 Thread Nichole
I should add that my simplified model above uses the given static examples without a redirect to a /site/mobile. By 'design for all viewports' I mean design to use floating right divs when possible... On Oct 6, 2:50 pm, Nichole nichole.k...@gmail.com wrote: I'm not using a pseudo-2-site model

[appengine-java] Re: Mobile subdomain in app engine

2011-10-06 Thread Nichole
One last addition is that the appengine implementation of javax.servlet.Filter will probably never intercept static content as those files are probably on CDN, hence not delivered directly by servlet container... On Oct 6, 2:55 pm, Nichole nichole.k...@gmail.com wrote: I should add that my

[appengine-java] Re: This application does not exist (app_id=u'application-id').

2011-10-06 Thread Eliot Stock
I just had this same error when I was NOT logged in as the user I thought I was. Didn't have access to the app as this user. I think the error message is wrong: the app exists, I just don't have access to it. -- You received this message because you are subscribed to the Google Groups Google

[appengine-java] Re: Mobile subdomain in app engine

2011-10-06 Thread WillSpecht
My real problem is that I can't figgure out how to show war/mobile/ home.jsp when a user types in m.mydomain.com/home. On Oct 6, 5:55 pm, Nichole nichole.k...@gmail.com wrote: I should add that my simplified model above uses the given static examples without a redirect to a /site/mobile. By

[appengine-java] Re: Session/Cookie problem with redirect

2011-10-06 Thread Miguel
I am really interested in oauth authentication. Can you post pieces of your code to explain how did you do to integrate with the GAE session? Thank you On Aug 29, 6:12 pm, Anders blabl...@gmail.com wrote: I think I have solved it now. The application passed an object from a third party library

[appengine-java] Re: Authentication and session best-practices

2011-10-06 Thread Miguel
another topic: - which is the difference between filter the HTTP request and the auth-constraint in web.xml. I think it is the same. Am I right? On Oct 6, 5:47 pm, Miguel doctormig...@gmail.com wrote: Hi, in the application I am developing I need to authenticate REST api- calls that are used