[appengine-java] Re: BigTable LIKE
Why don't you consider splitting the keywords and maintaining a memcache-resident HashMapString,id ? J.Ganesan www.DataStoreGwt.com On Aug 26, 9:25 pm, realdope rte...@gmail.com wrote: Hi, I know that you cannot do a LIKE clause in BigTable. How do you get around this issue? Suppose I'm making a book database, and I want to implement a search function that compares titles against a random string. What is a plausible mechanism with which to do so? Any help would be 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 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 at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: BigTable LIKE
Lets say you have book Harry potter If you want to search this withH or Ha Har Harr then this facility provided by google app engine, instead of Like use startWith . Else if you really want to search it with arry or rry basically any word in it, then you may saev every book name as SetString (Not List avod duplicates) save following strings in Set and you will be bale to search it... H A R Y HA AR RR RY HAR ARR RRY HARR ARRY HARRY Ravi. On Mon, Aug 29, 2011 at 11:56 AM, J.Ganesan j.gane...@datastoregwt.comwrote: Why don't you consider splitting the keywords and maintaining a memcache-resident HashMapString,id ? J.Ganesan www.DataStoreGwt.com On Aug 26, 9:25 pm, realdope rte...@gmail.com wrote: Hi, I know that you cannot do a LIKE clause in BigTable. How do you get around this issue? Suppose I'm making a book database, and I want to implement a search function that compares titles against a random string. What is a plausible mechanism with which to do so? Any help would be 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 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 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-java@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.
Re: [appengine-java] Re: is it possible to use Java 7 on GAE ?
I think adding support to Java 7 should be coupled with some API redesign, to leverage some new language features, like try-with-resources. Or even do API redesign first. 2011/8/24 Brandon Donnelson branflake2...@gmail.com What would be the benefits of moving to Java 7 sooner than later? -- 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/-/qUqOlkgoVrQJ. 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 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-java@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: Session/Cookie problem with redirect
I checked the response headers (in Google Chrome). When the redirect fails, then no cookie is set in the response header. Curious how this only happens sometimes. The sign in is a redirect from another redirect. First the sign in goes to a Twitter OAuth sign in page, then it's redirected back to the application and then the application makes a redirect to original page. When the sign in fails, not only is the cookie not set, the GAE session attribute is not set either when the redirect fails. -- 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/-/WTF9e1KV98QJ. 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] what about Backend Usage in upcoming GAE pricing scheme ?
Hi, there is nothing mentioned about Backend Usage at http://www.google.com/enterprise/cloud/appengine/pricing.html . currently GAE allows $0.72 worth of backend usage for free. will there be any free quota for backends in the upcoming new pricing scheme ? if yes, any idea how much ??? thanks, Prashant -- 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] how to set text to the com.google.appengine.api.datastore.Text in app engine
i am trying to append charcters to the com.google.appengine.api.datastore.Text object but its thrwoing error any pointers will be helpful com.google.appengine.api.datastore.Text reasonatedBy; public void setReasonatedBy(String reasonatedByNew) { this.reasonatedBy = new Text(reasonatedBy.toString() + reasonatedByNew); } -- 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Problem Adding a User Library [.Jar file]
Include your .jar file into Project--Properties--Java Build Path --- Library [Add external jars] in eclipse IDE. In project.gwt.xml file, inherit the required module like inherits name=com..yyy/ (or) Add all class files in your project classes directory. Inherit the required module(inherits name=com..yyy/ ). S. Abraham www.DataStoreGwt.com On Aug 24, 12:19 pm, NeverFollow pgroj...@zenius.com wrote: I try adding an user .jar file to my project. 1. Using: Project - Properties - Java Build Path - Libraries - [ Add External JARS...] - This fix the compilation errors 2. Using Project - Goole - App Engine Settings... - Web Application Under Suppress warnings about these build path entries being ouside of WEB-INF/lib: - Select [Add] button to add the path of the .jar file. 3. Click on Project - Google - GWT Compile [ERROR] The import com..yyy cannot be resolved [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly Did you experienced a similar problem? I am doing something wrong? Please help! -- 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 at http://groups.google.com/group/google-appengine-java?hl=en.
回复:Aw: Re: [appengine-java] Problems with Google SOAP-Server Tutorial
how do you set the NAMESPACE_URI? i change the First reason you mentioned, but i still get this: com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 404: OK -- 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/-/6KMgqhiT1EYJ. 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 at http://groups.google.com/group/google-appengine-java?hl=en.
Ang.: [appengine-java] DataStore query without transaction - Spring 2.5 + JPA
I just got the OpenEntityManagerInViewFilter to work (in Eclipse, have not deployed yet ) after having struggled for several days. Do you use the EMF class from http://code.google.com/intl/sv-SE/appengine/docs/java/datastore/jpa/overview.html ? If so, that might cause your problem since it creates an EntityManagerFactory. I have modified EMF to: public final class EMF { private static EMF _instance; private static EntityManagerFactoryInfo emfInstance; private EMF() { Object o = SpringApplicationContext.getBean(entityManagerFactory); emfInstance = (EntityManagerFactoryInfo)o; } public static EntityManagerFactory get() { if (_instance == null) { _instance = new EMF(); } return emfInstance.getNativeEntityManagerFactory(); } } where SpringApplicationContext is implemented as specified here: http://sujitpal.blogspot.com/2007/03/accessing-spring-beans-from-legacy-code.html . You still need the .size() hack after using getResultList(). -- 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/-/mrOKBfoM2n4J. 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Can't enable datastore admin
I also tried in my apps. All of them report Datastore Admin enabled successfully and I can see a new ah-builtin-python-bundle option in top left built-in select box. But when I click on Datastore Admin link, two symptoms show up: 1. For some apps I got a blank screen. Trying to understand what is going on, I found an iframe pointing to ah-builtin-python-bundle-dot- latest-dot-APPID.appspot.com, so I tried opening it in another browser tab. By doing so I got a permission screen to allow the app to access my google account information. After allowing, everything is OK from inside admin console. Browser (chrome) is denying some call due some cross-domain policy in authentication screen when accessed from admin console (iframe). 2. For other apps, occurs a DNS problem trying to resolve ah-builtin- python-bundle-dot-latest-dot-APPID.appspot.com, where APPID is my app id. Stuck in here. I'm ok with #1 because there is a easy work around (just open once the link in a new tab a hit allow). For #2 I found out that using a URL like this ah-builtin-python- bundle.latest.APPID.appspot.com instead of ah-builtin-python-bundle- dot-latest-dot-APPID.appspot.com would do the trick. But it is not possible to change what comes to iframe src attribute inside admin console, so it is pretty inconvenient as everytime I want to access datastore admin I must open another tab and enter a correct URL (or just add to favorites). Please note that I tried more than once disabling and re-enabling datastore admin, with no luck. Can anybody help me with this? Thanks, Marcelo -- 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 at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] how to set text to the com.google.appengine.api.datastore.Text in app engine
Uh...perhaps you might want to say what the error is or per chance even a stack trace or should we get out the crystal ball. Stephen www.cortexconnect.com On Fri, Aug 26, 2011 at 7:27 AM, Sundi sundi...@gmail.com wrote: i am trying to append charcters to the com.google.appengine.api.datastore.Text object but its thrwoing error any pointers will be helpful com.google.appengine.api.datastore.Text reasonatedBy; public void setReasonatedBy(String reasonatedByNew) { this.reasonatedBy = new Text(reasonatedBy.toString() + reasonatedByNew); } -- 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 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-java@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: BigTable LIKE
In addition to the above, I'd say you might want to make new keyword entities for each keyword and store the reference/key to the original entities instead of storing your keywords as a list of properties in your original entity. A list of strings is stored implicitly as an embedded table so will be slower to search for than searching for a keyword property in a separate entity - this later is indexed by the framework. On Aug 29, 4:01 am, Ravi Sharma ping2r...@gmail.com wrote: Lets say you have book Harry potter If you want to search this withH or Ha Har Harr then this facility provided by google app engine, instead of Like use startWith . Else if you really want to search it with arry or rry basically any word in it, then you may saev every book name as SetString (Not List avod duplicates) save following strings in Set and you will be bale to search it... H A R Y HA AR RR RY HAR ARR RRY HARR ARRY HARRY Ravi. On Mon, Aug 29, 2011 at 11:56 AM, J.Ganesan j.gane...@datastoregwt.comwrote: Why don't you consider splitting the keywords and maintaining a memcache-resident HashMapString,id ? J.Ganesan www.DataStoreGwt.com On Aug 26, 9:25 pm, realdope rte...@gmail.com wrote: Hi, I know that you cannot do a LIKE clause in BigTable. How do you get around this issue? Suppose I'm making a book database, and I want to implement a search function that compares titles against a random string. What is a plausible mechanism with which to do so? Any help would be 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 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 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-java@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.
Re: [appengine-java] Re: BigTable LIKE
I think keeping Keyword in seprate entity will be slower At time of writing you will be writing lots of entity instead of just one You will be worrying about how keyword will be mapped to each entity... iether by having a list of Keys in Keyword entity or specifying one to on emapping where keyword will be repeated If you want to get all entities which have some keywoprd and then sort by some field will cause you lots of in memory opeartion..first fetch keyword entity then get actual cnityt then sort it... On the otherhand List,Set property will be indexed too,and searching with in entity ort in anotehr entity its same. and this indexing is similar to a normal string indexing.. If you want to get all entities which have some keywoprd and then sort by some field , then you just need a composite index and it works its just read nad write for seprate entity will be more then a single entity. I would love to hear your thought as how you thought that single entity solution will be slower On Mon, Aug 29, 2011 at 7:40 PM, Nichole nichole.k...@gmail.com wrote: In addition to the above, I'd say you might want to make new keyword entities for each keyword and store the reference/key to the original entities instead of storing your keywords as a list of properties in your original entity. A list of strings is stored implicitly as an embedded table so will be slower to search for than searching for a keyword property in a separate entity - this later is indexed by the framework. On Aug 29, 4:01 am, Ravi Sharma ping2r...@gmail.com wrote: Lets say you have book Harry potter If you want to search this withH or Ha Har Harr then this facility provided by google app engine, instead of Like use startWith . Else if you really want to search it with arry or rry basically any word in it, then you may saev every book name as SetString (Not List avod duplicates) save following strings in Set and you will be bale to search it... H A R Y HA AR RR RY HAR ARR RRY HARR ARRY HARRY Ravi. On Mon, Aug 29, 2011 at 11:56 AM, J.Ganesan j.gane...@datastoregwt.com wrote: Why don't you consider splitting the keywords and maintaining a memcache-resident HashMapString,id ? J.Ganesan www.DataStoreGwt.com On Aug 26, 9:25 pm, realdope rte...@gmail.com wrote: Hi, I know that you cannot do a LIKE clause in BigTable. How do you get around this issue? Suppose I'm making a book database, and I want to implement a search function that compares titles against a random string. What is a plausible mechanism with which to do so? Any help would be 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 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 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-java@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. -- 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 at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] OAuth and Appengine java
Looks like you're trying to implement a consumer. You don't need to enable federated login. Can you provide your server side provider code? You can't use OAuth to auth against something expecting UserService. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Aug 29, 2011 at 1:39 AM, Erlend Hamnaberg ngar...@gmail.com wrote: Hi. I am attempting to use OAuth in my appengine app. I can't even get to the app, as google accounts hijacks my session before that happens. Do I need to enable federated login? App id: sykle-til-jobben I've attached the code I've used to connect to appengine http://code.google.com/appengine/docs/java/oauth/ is really sparse with documentation. Looking at: http://code.google.com/appengine/docs/python/oauth/overview.html http://code.google.com/apis/accounts/docs/OAuth_ref.html Does not help me either. What have I done wrong? -- Erlend -- 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 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-java@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: Session/Cookie problem with redirect
Hmm... It seems that an OAuth call to a third party API sometimes throws a null pointer exception. Looks like a tricky bug, but probably not something that has to do with GAE (except if there is some server clock sync issue or something like that). -- 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/-/oonyRNGtaxwJ. 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Session/Cookie problem with redirect
I think I have solved it now. The application passed an object from a third party library in a GAE session attribute. Sometimes when the object was retrieved from the session attribute it didn't work (often it worked but not always)! Now the application creates a new instance instead of passing it in a session attribute and so far it's working all the time. Something to do with the serialization/deserialization of the object put into the session perhaps, or that using an old instance sometimes failed and that a new instance is needed in this case. -- 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/-/h2EyKyGTzWEJ. 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Advice for looping through 100K records and updating multiple entities on each iteration
How are retrieving these 100k records? Is it all the data of a particular kind or there is some specific condition? Even then, you could take a look at Map Reduce, it should be helpful. -- 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/-/VbEqIm1UND8J. 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: java.net.SocketTimeoutException: Timeout while fetching
I don't know if this might be useful.. but I once got socket timeouts 100% of the time and realized this was my mistake: http://www.example.com?param1=xxx Changing to this fixed it!! http://www.example.com/?param1=xxx Do you see the / after .com, if you aren't doing that try doing it. -- 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/-/s-hQTNG5h-4J. 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 at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Deployment failing consistently!
Been experiencing this for the past 8 hours. The deployment has been consistently failing with the final error: Cloning 1317 application files. on backend null. java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/clonefiles?app_id=xxx-max222version=3; 500 Internal Server Error Anyone else seen this? -Max -- 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/-/8nxq5PO4m4oJ. 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 at http://groups.google.com/group/google-appengine-java?hl=en.