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

Re: [appengine-java] Re: Loading requests timeout with DeadlineExceededException while reading classes

2011-09-17 Thread John Patterson
:03 UTC+7, John Patterson wrote: Why is the time for file system access so erratic? As this is a major performance/stability variable then perhaps it should be covered in the system status pages. Is this file system access problem somehow linked to the recent memcache issues

Re: [appengine-java] Re: Loading requests timeout with DeadlineExceededException while reading classes

2011-09-10 Thread John Patterson
I have started getting deadlock exceptions thrown from code that uses Guavas ConcurrentHashMap http://code.google.com/p/googleappengine/issues/detail?id=5384 Aside from this problem, loading requests frequently seem to block on something (resource access?). Normally they complete in 5-8

[appengine-java] Re: min. charge under new pricing

2011-09-05 Thread John Patterson
You are right: 9 bucks is the minimum *if *you want to be able to automatically scale beyond the free limits. Your app is either free to run (under 50,000 datastore ops a day etc) or at least 9 dollars a month. Nothing in-between. Its the fear of showing a quota error page to users that

[appengine-java] Re: The JavaScript file is not found to the JSF2 application that has been deployed

2011-09-05 Thread John Patterson
Do you have caching set up for static files in your appengine-web.xml? This can mean that when you deploy a new version the old scripts are still served for a while. You can verify what scripts are available on the server by requesting them directly in your browser. -- You received this

[appengine-java] Re: threads per instance (Java)

2011-09-04 Thread John Patterson
Three months ago instances were limited to 10 concurrent requests but apparently this restriction will be completely removed (may already be removed) and the CPU usage of your app will be the sole determinant of concurrency. So if your app handles requests very efficiently it will handle a

[appengine-java] Loading requests timeout with DeadlineExceededException while reading classes

2011-08-31 Thread John Patterson
I've changed the topic name from this thread but the issue is the same: https://groups.google.com/d/topic/google-appengine-java/nU1c9tHbG60/discussion I want to know if this is a recognised problem with threads-safe=true apps and if work is being done to improve the situation. Can I expect a

[appengine-java] Re: Loading requests timeout with DeadlineExceededException while reading classes

2011-08-31 Thread John Patterson
I should add that some loading requests take an excessive amount of time (20+ seconds) but do not time out. Those are the ones that result in the unneeded front-end instances shown above. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: GAE domains not resolving

2011-08-31 Thread John Patterson
When I try your link from Thailand it resolves to Google but gives this error https://lh3.googleusercontent.com/-sO3H5YHOxdY/Tl4UFX-zLHI/ADk/ukA7hBPg_TY/Capture.PNG So it looks like your domain issues are local but you have not added the domain to your app correctly. BTW, I also

Re: [appengine-java] Re: GAE domains not resolving

2011-08-31 Thread John Patterson
On 31/08/2011 18:36, footy wrote: That is the 404 error page from Google which is what led me to believe that there is a probelm with ghs.google.com and CNAME resolution. The fact that your browser shows this google page indicates that the name resolution is working but that perhaps you have

Re: [appengine-java] Re: Loading requests timeout with DeadlineExceededException while reading classes

2011-08-31 Thread John Patterson
On 31/08/2011 19:48, Simon Knott wrote: Another developer posted that they had a massive performance improvement deploying their classes in a JAR file - see https://groups.google.com/d/msg/google-appengine/Gl7OaMOHJD8/i_ti0KceockJ for the relevant thread. A ha!!! I have not tested as a

Re: [appengine-java] Task queue locking up

2011-08-24 Thread John Patterson
I switched back to thread-safetrue/threadsafe , upgraded to SDK 1.5.2 and for a week the number of deadlocks seems to be greatly reduced. I do still get deadlocks but now the error reporting is MUCH better. They normally occur in some Google generated method

Re: [appengine-java] GWT + GAE pom?

2011-08-10 Thread John Patterson
I haven't read your exact setup but some things that might help: Add this to your pom.xml build outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory I use the Eclipse plugin FileSync to keep src/main/webapp synchronised with /target/myapp-1.0/

[appengine-java] Re: Datastore access deadlock

2011-08-05 Thread John Patterson
Do you normally see the DeadlineExceededException? If not then perhaps you are running into this dead-lock issue : http://code.google.com/p/googleappengine/issues/detail?id=5384 Try turning off thread-safe mode - that fixed the problem for me while I wait for a proper fix for multi threaded

Re: [appengine-java] Re: Mining logs for performance data

2011-08-01 Thread John Patterson
On 30/07/2011 08:50, Kesava Neeli wrote: Thanks for the pointer. I wasn't aware of the the 'download logs' tool. I will give that a try. It doesn't contain the time information. That only shows in the console -- You received this message because you are subscribed to the Google Groups Google

Re: [appengine-java] Task queue locking up

2011-07-25 Thread John Patterson
On Tuesday, 26 July 2011 04:03:44 UTC+7, Ikai L (Google) wrote: John, yeah, it's a deadlock, possibly in userspace code. Can you look into this? The only pattern I could detect was the dead-lock with concurrent file access - I had my web framework in dev mode so each request was loading

[appengine-java] Re: Mining logs for performance data

2011-07-25 Thread John Patterson
I've seen a couple of apps (iPad app) that can log into your account and monitor various things. I took a very low-tech approach to average the response time from logs: I filter logs by label (e.g. path:/place/.*) and set the limit to 200 (the maximum logs you can show in one page) and then

[appengine-java] Re: java.lang.NoClassDefFoundError: for sample project ( CodeLabEx2.zip.)

2011-07-25 Thread John Patterson
make sure you have all the app engine libs in /WEB-INF/lib -- 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/-/QTTGn-_VOmAJ. To post to

[appengine-java] Pending or not pending

2011-07-23 Thread John Patterson
Hi, I was wondering why in the logs some requests show pending=XXXms and others do not even though the request is clearly taking a lot of time in the plumbing before it gets to my first request Filter (which times total ms spent in my code)? As an example, below are samples from my logs

[appengine-java] Re: New Pricing Model

2011-07-22 Thread John Patterson
No body can answer that without knowing exactly how your app uses billed resources. Latest details can be found here: https://groups.google.com/d/topic/google-appengine/Hluog1_a3n4/discussion BTW, 10 queries is too much - your goal should be zero or one query per page by using

Re: [appengine-java] Task queue locking up

2011-07-21 Thread John Patterson
Oh also, I was previously getting deadlocks ( time-out without exception) as more than one thread tried to read a resource from the file system. I wonder if the wide variety of circumstances that this problem occurs in points to something fundamental like the security manager? -- You received

[appengine-java] Task queue locking up

2011-07-20 Thread John Patterson
I have a task which sometimes runs fine in a few seconds and other times locks up and times out after 10 mins. The logs do not show any exception just this message: 2011-07-21 01:38:06.983 A serious problem was encountered with the process that handled this request, causing it to exit. This

Re: [appengine-java] Big Entities vs Small Entities

2011-07-01 Thread John Patterson
Keep them all in one Entity so you only need to do a single datastore get() but embed a List of FormField (or something) in the main entity. Both Twig and Objectify support embedding collections of objects in a single Entity. Entity size is less important than the number of datastore calls

[appengine-java] Optional custom index

2011-06-29 Thread John Patterson
Hi All, I just wanted to share some timings and a performance tip that I wasn't previously aware of on the HR datastore (should also apply to MS datastore). I had a query that was the limiting factor for my page load time. It was taking on avg 280ms to query with two equality filters across

[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null

2011-06-13 Thread John Patterson
I'm finding the same problem. This worked for me: BlobKey key = files.getBlobKey(file); if (key == null) { Thread.sleep(2000); key = files.getBlobKey(file); } -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this

[appengine-java] Re: Entity.getKey() reliable for gets?

2011-06-12 Thread John Patterson
Hi Jay, yes you can use the Key that you have created - it is fully specified by the kind and id/name (automatically includes appId and namespace). It is worth noting that if you create a Key and Entity then keep a reference to the Key in a HashMap that after calling db.put() the has value of

[appengine-java] Re: Entity.getKey() reliable for gets?

2011-06-12 Thread John Patterson
.. that is the hash value will change. -- 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/-/uIMwryKZk9kJ. To post to this group, send email

Re: [appengine-java] Re: how to persist a list of bytearray?

2011-03-21 Thread John Patterson
On 18/03/2011 15:29, Jeff Schnitzer wrote: I normally don't do this but... if you're using Objectify, it's just: @Serialized private Listbyte[] attachments; Jeff ... and for comparison, with Twig you use its type converter system to tell it to store the whole list as a single blob:

Re: [appengine-java] Low-level API: EntityTranslator and DataTypeTranslator

2010-10-26 Thread John Patterson
These are unpublished classes so you should use them at your own risk. They may change in a future release in which case you will get NoSuchMethodError exceptions thrown. You can see how Twig uses them in AyncDatastoreHelper to implement async datastore commands. Twigs implementation

Re: [appengine-java] Many to many relation ship

2010-10-19 Thread John Patterson
On 7 October 2010 05:15, hadf hadrien.for...@gmail.com wrote: how jpa or jdo knows that Car is associated to User ? public class Car { @OneToMany private SetKey users; //this relation ship is untyped } Two alternative datastore frameworks add typing in different ways. Twig uses

Re: [appengine-java] Size of Nearly Empty Entity

2010-10-18 Thread John Patterson
This should answer most of your questions about storage: http://code.google.com/appengine/articles/storage_breakdown.html Entities do not use any space for missing values but do use space for null values. In fact, because Entities are essentially a Map of name-value pairs, there is really no

Re: [appengine-java] Re: Web Hook - Asynchronous - Where is my response?

2010-10-07 Thread John Patterson
There is no public API for checking the status of tasks. A task is really nothing more than a normal http request which is monitored by GAE to retry it if it fails. The real brains is in the task queue which is simply a queue of URL's that app engine will fire off at a given rate and

Re: [appengine-java] Re: Tell data store not to selected index properties on bulkupload

2010-10-05 Thread John Patterson
On 5 Oct 2010, at 19:44, Maxim Veksler wrote: Hi Peter, I used bulkloader.yaml. I can't find the non indexing configuration in the docs http://code.google.com/appengine/docs/python/tools/uploadingdata.html Should I just go back and user the deprecated method (python configuration?).

Re: [appengine-java] Re: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-05 Thread John Patterson
Wicket works fine on GAE as long as you make sure your page instances do not contain non-Serializable instances - using detachable models follows this rule. Here is this base class I use to set up a Wicket / Engine App public abstract class EngineApplication extends WebApplication {

Re: [appengine-java] Select query using LIKE

2010-10-04 Thread John Patterson
Use a GREATER_THAN_OR_EQUAL and a LESS_THAN filter to match a prefix - thats the best you can do for a single stored term. You will need to break the term up into multiple n-grams if you want to query for a partial match within a term. On 4 Oct 2010, at 16:25, Ravi Dhanwate wrote: Hi

Re: [appengine-java] JDO unique Long ID keys across entity groups

2010-10-01 Thread John Patterson
You can use DatastoreService.allocateIds() to get a range of unique keys that you can then assign to the children. The kind name can be any old String - not just an existing kind. This method does not guarantee the ids will be sequential but they will be unique. If you really need

Re: [appengine-java] Python and Java

2010-09-26 Thread John Patterson
Different versions are completely separate code bases that share a common datastore and other API services. One version could be written in Java and another in Python but only one can be the default version at a time (receiving traffic from your domain name). The other versions are

Re: [appengine-java] How to make GWT + App Engine application crawlable?

2010-09-25 Thread John Patterson
the query string from http://127.0.0.1:/Hello.html?A=Bgwt.codesvr=127.0.0.1:9997 too! On Thu, Sep 23, 2010 at 10:04 AM, John Patterson jdpatter...@gmail.com wrote: On 23 Sep 2010, at 07:47, hezjing wrote: When run in the GWT development mode, e.g. http://127.0.0.1:/X.html

Re: [appengine-java] Namespace design issues

2010-09-23 Thread John Patterson
On 24 Sep 2010, at 02:55, Mouseclicker wrote: API. The need to set and later reset a global setting is dangerous and error-prone. Probably that's what Guillaume mentions with The fear I had was when seeing a static methods being used. I'm always afraid when I see 'static' somewhere. Me too!

Re: [appengine-java] How to make GWT + App Engine application crawlable?

2010-09-22 Thread John Patterson
On 23 Sep 2010, at 07:47, hezjing wrote: When run in the GWT development mode, e.g. http://127.0.0.1:/X.html?_escaped_fragment_=gwt.codesvr=127.0.0.1:9997 , the application without App Engine is able to retrieve the query string as _escaped_fragment_=gwt.codesvr=127.0.0.1:9997. The

Re: [appengine-java] Re: A question about queries and composite indices

2010-09-19 Thread John Patterson
On 16 Sep 2010, at 21:18, Ikai Lan (Google) wrote: The way an AND query works is by making multiple queries and merging the results by zig-zagging between them. A solution to your problem may be simply to whittle down the result set to as small as you can reasonably get it, then traverse

Re: [appengine-java] Using the Python bulk exporter tool with a Java application

2010-09-19 Thread John Patterson
If you feel more comfortable working with Java, I use this code to bulk load and backup data: http://code.google.com/p/remote-datastore/ It intercepts the raw bytes sent to the local datastore and sends them to another remote datastore. Because it operates at this very low level it is

Re: [appengine-java] SimpleDS 1.0 is out

2010-09-13 Thread John Patterson
Nice work Nacho! Some cool new features... love the meta-data reloader idea On 13 Sep 2010, at 18:53, Nacho Coloma wrote: We are excited to announce the 1.0 release of SimpleDS. SimpleDS is a simple persistence framework for Google AppEngine that provides an alternative to JDO or JPA. This

Re: [appengine-java] Problem starting a GWT (with jetty) app via LAN

2010-09-13 Thread John Patterson
Try adding the parameter -bindAddress 0.0.0.0 in the launch configuration. Since a few versions back the dev server will only bind to the local interface by default. On 13 Sep 2010, at 15:46, Thomas P. wrote: Hi all, Initially, I used GWT + GAE for my project and when compiled to

Re: [appengine-java] Re: Need help choosing a frontend framework for a GAEj app, GWT seems like overkill

2010-09-09 Thread John Patterson
You might want to look into Sitebricks which is a Google developed web app framework built on top of Guice. It is a simple request response processor with no fancy component abstractions like Wicket or Tapestry. This model fits in very well with GWT (or other client frameworks) which request

Re: [appengine-java] Re: Need help choosing a frontend framework for a GAEj app, GWT seems like overkill

2010-09-09 Thread John Patterson
BTW, you can use GWT in a manor very similar to JQuery. Take a look a GQuery by Ray Cromwell. He has an incredible benchmark page which dynamically shows how GQuery out performs JQuery in almost every measure. On 10 September 2010 05:53, John Patterson jdpatter...@gmail.com wrote: You might

Re: [appengine-java] Re: Any ETA for a backup/restore facility?

2010-09-07 Thread John Patterson
. On 7 Sep 2010, at 21:18, luka wrote: Thanks, now it's running smoothly. Next challenge is integrating it to JDO Is it doable ? On Aug 19, 9:01 pm, John Patterson jdpatter...@gmail.com wrote: Have you added appengine-testing-1.3.6.jar and appengine-api- stubs-1.3.6.jar to your project

Re: [appengine-java] Security problem with App Engine application

2010-09-03 Thread John Patterson
You can write a local Java application that reads data using the JDBC driver and inserts it into your datastore using the RemoteDatastore library: http://code.google.com/p/remote-datastore/ I use this code to read local data from a CSV file and push it to either my local App Engine

Re: [appengine-java] Re: can we use Web-services in Gooogle app engine

2010-09-03 Thread John Patterson
I needed to call a SOAP service using RPC style which is not supported by the Force.com connector. In the end it wasn't hard to roll my own system which simply uses URLFetchService and parses the XML ignoring (or adding) the SOAP envelope rubbish. On 3 Sep 2010, at 15:41, Francois

Re: [appengine-java] Re: How we can read uncommitted data in same transaction.

2010-09-02 Thread John Patterson
On 2 Sep 2010, at 18:48, Arnold wrote: Subhash, You may want to use JDO if that is possible. It appears that you can read uncommitted data within the same transaction, I presume because the Entity does not get fetched from the Datastore every time you use PersisistenceManager.getObjectById().

Re: [appengine-java] Re: favicon.ico weirdness

2010-08-27 Thread John Patterson
On 26 August 2010 05:28, stanlick stanl...@gmail.com wrote: I do not have a frameset. Yes you do - view source on your page. You have probably set up a naked domain with your registrar who host this page and include your website as a frame within that page. If you cannot modify this

Re: [appengine-java] favicon.ico weirdness

2010-08-24 Thread John Patterson
When I view source for your frameset there is no link tag like: link rel=shortcut icon href=/somepath/myicon.ico / On 25 Aug 2010, at 04:15, stanlick wrote: I am experiencing some crazy stuff with my browser icon: 1) shows up on development server 2) shows up fine once deployed and accessed

Re: [appengine-java] sending HTTP GET with xml payload

2010-08-20 Thread John Patterson
On 20 Aug 2010, at 03:27, jwangatx wrote: I know it seems logical that GET's should only send a url with QS (Query String) params to qualify the get, but if I have a complex subscription/highly-directly query, I would prefer to send all the parameters as payload/XML. Why not just use POST?

Re: [appengine-java] Re: Any ETA for a backup/restore facility?

2010-08-19 Thread John Patterson
: com.google.appengine.tools.development.ApiProxyLocalFactory com.google.appengine.tools.development.LocalServerEnvironment Can you workaround that ? What older SDK supports this project ? Thanks Uri On Jul 5, 12:32 am, John Patterson jdpatter...@gmail.com wrote: I have had success uploading data

Re: [appengine-java] Shared Datastore via Multiple App Versions Locally

2010-08-13 Thread John Patterson
Your approach works fine for me on OS X. But the datastore is held in memory so only one app can use it at a time. If you make changes to the datastore you also need to wait until you see the log message Time to persist datastore... before shutting down the app. On 13 Aug 2010, at 09:14,

Re: [appengine-java] Re: HELP: My app is getting lots of HardDeadlineExceededError today.

2010-08-13 Thread John Patterson
On 14 Aug 2010, at 00:24, Ikai L (Google) wrote: index and the frequent updates the application needs to make in order to keep the data current. 71000 CPU to save 100 records seems rather expensive?. My App uses 600,000 CPUms to save 100 entities so I don't think that is expensive

Re: [appengine-java] Re: urlfetch and embedded gae usage error

2010-08-09 Thread John Patterson
On 9 Aug 2010, at 21:40, alesj wrote: See an example here which allows running GAE from a normal main() method http://code.google.com/p/remote-datastore/source/browse/src/main/ java... How should appId and warPath look like? (I see here are no-local-appid-set ands .) Or what's their

Re: [appengine-java] appcfg bulkuploading Listkey values from csv

2010-08-04 Thread John Patterson
If you use this: http://code.google.com/p/remote-datastore/ you can upload Entities in a main(String[]) using the simple low-level API. If your data is in CSV format you'll need to parse the file lines to create your Entities. On 4 Aug 2010, at 16:51, Dani wrote: Hi, i'm trying to

Re: [appengine-java] Enter Data using Queues/Task

2010-08-02 Thread John Patterson
other way of doing this Can u help me regarding this Thanx Sandeep On Sun, Aug 1, 2010 at 1:25 AM, John Patterson jdpatter...@gmail.com wrote: I mean bulk put - that is using DatastoreService.put(Iterable) or JDO's makePersistentAll(...) If you do one call with many instances instead of many

Re: [appengine-java] Re: Python bulk loader tool with local dev server of GAE Java

2010-08-01 Thread John Patterson
Hi Jan, I have used the Java RemoteDatastore to upload and download data in bulk. It allows you to use the low-level API, JDO, Twig, Objectify or whatever to store your data remotely or locally. http://code.google.com/p/remote-datastore/ On 1 Aug 2010, at 19:49, Jan wrote: Hi, I still

Re: [appengine-java] Re: Python bulk loader tool with local dev server of GAE Java

2010-08-01 Thread John Patterson
your library please ? I am not sure it is obvious for anyone. What are the dependencies of your project : the jar used. Thanks a lot 2010/8/1 John Patterson jdpatter...@gmail.com Hi Jan, I have used the Java RemoteDatastore to upload and download data in bulk. It allows you to use the low

Re: [appengine-java] Enter Data using Queues/Task

2010-07-31 Thread John Patterson
Please give me a sample code. Thanx Sandeep On Fri, Jul 30, 2010 at 6:22 PM, John Patterson jdpatter...@gmail.com wrote: On 30 Jul 2010, at 18:10, Sandeep Ghosh wrote: Hi, I am facing promlem of entering many data into the Google App engine database as its taking more then 30 sec time limit

Re: [appengine-java] Enter Data using Queues/Task

2010-07-30 Thread John Patterson
On 30 Jul 2010, at 18:10, Sandeep Ghosh wrote: Hi, I am facing promlem of entering many data into the Google App engine database as its taking more then 30 sec time limit. PersistenceManager pm = PMF.get().getPersistenceManager(); for(;;) { EnterData data = new EnterData(key,value,new

Re: [appengine-java] Persistent Local Datastore

2010-07-29 Thread John Patterson
On 30 Jul 2010, at 07:09, Sydney wrote: I have a question that seems trivial but I can't figure out how to do it. I would like to be able to test my application but with persistent data. So I need to create a local environment to store the data. I read the documentation about unit testing but

Re: [appengine-java] Creating and storing unique values

2010-07-28 Thread John Patterson
On 29 Jul 2010, at 04:35, Sven wrote: I played around with a couple of ways to generate identifiers which do not look too simple (short integers, such as primary key values), not to complicated (too long or cryptic) and not too predictable (System time). My current favorite is to generate a

Re: [appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-27 Thread John Patterson
On 27 Jul 2010, at 21:18, Bill wrote: That's the way it is because that's the way we say it has to be is not an answer. There is no reason why selecting an object from one group is going to impact insert or update in a different entity group It doesn't! You just cannot do it in the same

Re: [appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread John Patterson
On 26 Jul 2010, at 19:21, Bill wrote: Good thought, but unforunately Elements already have a parent key in this manner. Elements are hierarchical, so that an Element's parent is another parent. Can an entity have more than one parent? I haven't tried that... An Entity can only have one

Re: [appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-26 Thread John Patterson
On 27 Jul 2010, at 00:24, Bill wrote: This would completely disregard my business model. A Domain is not an Element, nor vice-versa. It's something analogous to making both classes Elephant and Corn implement the same interface because both have Ears. Ha ha well you would not actually need

Re: [appengine-java] Re: How to upload primary key as an id instead of name

2010-07-23 Thread John Patterson
I have used RemoteDatastore to upload and download data in bulk. You can set whatever id you want. http://code.google.com/p/remote-datastore/ On 23 Jul 2010, at 10:01, Subhash wrote: Hi Uberto, Otherwise if all your existing ids are numeric you can change bulkloader to create the id

Re: [appengine-java] Invalid handle problem while using Transaction in Remote API.

2010-07-22 Thread John Patterson
On 22 Jul 2010, at 20:53, Subhash wrote: Hi I am using Remote API for connecing with my database while running code on my local machine. While I use transactions, it gives Invalid handle exception while saving my entity. If I don't use transaction. same code is running fine. Below is my code:

Re: [appengine-java] Re: Entity relationship table

2010-07-21 Thread John Patterson
On 22 Jul 2010, at 02:53, dmetri333 wrote: private ListPerson friends = new ArrayListPerson(); You cannot have direct references for unowned relationships in JDO-GAE. Twig is the only datastore interface I know of that does allow this http://code.google.com/p/twig-persist/ -- You

Re: [appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-20 Thread John Patterson
Yes, the kind name is used in the key along with the id/name and ancestor path and all contribute to the size. Details: http://code.google.com/appengine/articles/storage_breakdown.html On 20 Jul 2010, at 15:41, Didier Durand wrote: @John Patterson, I did not mention the Class / Kind in my

Re: [appengine-java] Re: is there any solution/idea how blacklist IP in realtime ?

2010-07-19 Thread John Patterson
I believe some people maintain their own request count by ip address using memcache and restrict access using a filter. On 19 Jul 2010, at 20:09, Marcus Brody wrote: I am missing something ? So you guys are sitting in web console and watch how many requests came from given IP address ? This

Re: [appengine-java] Re: rename a app-id

2010-07-18 Thread John Patterson
Yes you can transfer your data efficiently using the remote datastore: http://code.google.com/p/remote-datastore/ You basically read in bulk from one datastore then write in bulk to the other like this DatastoreService service = DatastoreServiceFactory.getDatastoreService();

Re: [appengine-java] populate datastore with a new kind

2010-07-18 Thread John Patterson
On 18 Jul 2010, at 06:11, emmanuel harel wrote: Thanks John ! Is it possible to have a svn check out repository address ? Regards http://code.google.com/p/remote-datastore/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

Re: [appengine-java] populate datastore with a new kind

2010-07-18 Thread John Patterson
On 19 Jul 2010, at 01:23, emmanuel harel wrote: Thank you for the address but my tortoise svn is telling me this is not the address of the trunk Do i have to use TortoiseHG to check out this project ? Click on the link and all will be revealed -- You received this message because you are

Re: [appengine-java] 500 Server Error. Please help

2010-07-17 Thread John Patterson
Look in the logs to see what is causing the error On 17 Jul 2010, at 19:37, jayati wrote: After much difficulty in deploying, (difficulty like: I was getting remote host closed connection many times and had to deploy again and again) It finally deployed correctly. But, I am getting error as

Re: [appengine-java] Re: memcache best practice or framework

2010-07-16 Thread John Patterson
On 17 Jul 2010, at 08:33, Shawn Brown wrote: Aaah, stick-cache has dependencies on twig and http://code.google.com/p/guava-libraries/ The utilities from twig can be pulled out easily but I haven't looked at guava-libraries/ Sorry the Twig ones slipped in by mistake. I'e just pushed an

Re: [appengine-java] Re: Or filters cannot be applied to multiple properties

2010-07-15 Thread John Patterson
:30 pm, John Patterson jdpatter...@gmail.com wrote: Twig Persist has support for OR queries on multiple properties. http://code.google.com/p/twig-persist/ You example is coded like this: TypedFindCommand command = datastore.find().type(Person.class).addFilter)active, EQUAL, true

Re: [appengine-java] Or filters cannot be applied to multiple properties

2010-07-14 Thread John Patterson
Twig Persist has support for OR queries on multiple properties. http://code.google.com/p/twig-persist/ You example is coded like this: TypedFindCommand command = datastore.find().type(Person.class).addFilter)active, EQUAL, true); command.addChildQuery().addFilter(firstName, EQUAL,

Re: [appengine-java] Re: How to upload primary key as an id instead of name

2010-07-13 Thread John Patterson
You can do this now using the RemoteDatastore Java utility http://code.google.com/p/remote-datastore/ For example, this code runs on your desktop and creates a single entity in your live datastore: // divert datastore operations to live application RemoteDatastore.install();

Re: [appengine-java] Re: same application same datastore different subdomain

2010-07-13 Thread John Patterson
On 14 Jul 2010, at 01:39, Shyam Visamsetty wrote: You definitely cannot share the data store between two applications as of now. Technically you actually can share data between applications using RemoteDatastore - you can divert datastore operations to a different application.

Re: [appengine-java] Re: Have to restart server to see changes when using Spring

2010-07-12 Thread John Patterson
JRebel woks well with App Engine to make restarting unnecessary most of the time. On 12 Jul 2010, at 19:53, Marcel Overdijk wrote: Anytime you change a Java file you have to restart the server to make the changes effective. On Jul 12, 7:59 am, decitrig rws...@gmail.com wrote: I have this

Re: [appengine-java] How to upload primary key as an id instead of name

2010-07-12 Thread John Patterson
If you use the RemoteDatastore you have complete control in Java of what you key is. http://code.google.com/p/remote-datastore/ e.g. this code puts an entity with the id set in your remote datastore from your local machine: RemoteDatastore.install();

Re: [appengine-java] Re: Best performance for deleting and inserting entities

2010-07-10 Thread John Patterson
You can use the RemoteDatastore to do bulk puts directly from your desktop to the live datastore. It is extremely fast as it simply forwards on the binary protocol buffer data from one environment to another. http://code.google.com/p/remote-datastore/ On 10 Jul 2010, at 20:06, Robert

Re: [appengine-java] Re: Best performance for deleting and inserting entities

2010-07-10 Thread John Patterson
to load just 100K. Peter On Jul 10, 4:22 pm, John Patterson jdpatter...@gmail.com wrote: You can use the RemoteDatastore to do bulk puts directly from your desktop to the live datastore. It is extremely fast as it simply forwards on the binary protocol buffer data from one environment to another. http

Re: [appengine-java] Re: memcache best practice or framework

2010-07-10 Thread John Patterson
On 11 Jul 2010, at 09:12, Shawn Brown wrote: MemoryCacheString, Hotel mc = new MemoryCacheString, Hotel(50); but on Jun 22, 2010; that class was deleted revision ded84586e4Delete /src/main/java/com/vercer/cache/ MemoryCache.java Is it no longer supported? Try an update now - it is

Re: [appengine-java] Desarrollo de Aplicaciones con Eclipse

2010-07-09 Thread John Patterson
Es un pregunta muy amplio. Por eso no podemos ayudar mucho. On 9 Jul 2010, at 23:57, Edixon Polanco wrote: Buenas Tardes. Si quiero desarrollar la aplicación con Google App Engine. Me pueden ayudar? Gracias por su atención. Saludos, Edixon 2010/7/7 Guillermo Schwarz

Re: [appengine-java] Error: The API package 'urlfetch' or call 'Fetch()' was not found.

2010-07-07 Thread John Patterson
This RemoteDatastore code does what you are after to allow you to upload and download data from the datastore from a normal JAva application. You can copy the Environment stuff from there:

Re: [appengine-java] Re: Any ETA for a backup/restore facility?

2010-07-04 Thread John Patterson
I have had success uploading data in bulk from Java using this RemoteDatastore code: http://code.google.com/p/remote-datastore/ It is very easy to use and because it operates at the binary protocol buffer level it is very fast Here is an example of using it to upload data: public class

Re: [appengine-java] Jetty binds to localhost and not my wireless IP

2010-07-01 Thread John Patterson
Try -bindAddress 0.0.0.0 It works for connecting to GWT from a different machine but I never had a problem connecting to the servlet engine. On 2 Jul 2010, at 03:25, keyeslabs wrote: I'm running GAE eclipse dev environment (GAE installed via the eclipse update mechanism). When I run my

Re: [appengine-java] Jetty binds to localhost and not my wireless IP

2010-07-01 Thread John Patterson
Try -bindAddress 0.0.0.0 - it works for GWT, not sure about Jetty. On 2 Jul 2010, at 03:25, keyeslabs wrote: I'm running GAE eclipse dev environment (GAE installed via the eclipse update mechanism). When I run my GAE application locally, it starts jetty, which seems to bind to localhost

Re: [appengine-java] Almacén de datos AppEngine

2010-06-23 Thread John Patterson
Go to localhost:/_ah/admin/ On 24 Jun 2010, at 05:58, lisandrodc wrote: Hola, quería saber como usar de manera local, sin subir la aplicación a la web el tema del almacén de datos local_db.bin, si puedo visualizar la base de datos de manera local en mi equipo de alguna manera. Gracias

Re: [appengine-java] Re: Local Persistance of Data

2010-06-23 Thread John Patterson
You probably have struts configured to handle all requests. Wicket uses a filter rather than a servlet so it can pass unhandled URL's down the chain. Can you configure Struts like this? On 24 Jun 2010, at 06:36, lisandrodc wrote: Hi! I have a same problem that Prateek. I use Struts 2. I

Re: [appengine-java] Re: memcache best practice or framework

2010-06-22 Thread John Patterson
sophisticated. Maybe something for the roadmap? Cheers, Toby On Jun 18, 10:33 am, John Patterson jdpatter...@gmail.com wrote: Hi Toby, I made some code public that does what you describe: it is a simple cache interface that has implementations for in-memory,memcacheand the datastore. You get about

Re: [appengine-java] Parent child joins in JDO queries

2010-06-22 Thread John Patterson
If you are not required to use JDO consider one of the GAE specific persistence libraries. Both Twig and Objectify support embedding collections of entities in a single container entity which gives the ability to query using properties of the container or the contained. I believe Twig is

Re: [appengine-java] Appache Commons StringEscapeUtils - NoClassDefFoundError

2010-06-22 Thread John Patterson
Make sure the jar is also in your war/WEB-INF/lib directory On 22 Jun 2010, at 21:41, klonq wrote: I am using org.apache.commons.lang.StringEscapeUtils in my project and running into errors on the development server. The exception I receive is java.lang.NoClassDefFoundError, from what I

Re: [appengine-java] Loading request timings

2010-06-21 Thread John Patterson
with the sample webapps that demonstrate this latency, then we might be able to look into it further. On Sun, Jun 20, 2010 at 4:09 AM, John Patterson jdpatter...@gmail.com wrote: Hi All, Just thought I would share some timings I have made to determine what effect adding dependencies has

[appengine-java] Loading request timings

2010-06-20 Thread John Patterson
Hi All, Just thought I would share some timings I have made to determine what effect adding dependencies has on loading request time. I made four apps using the Eclipse plugin and modified 3 of them to add or remove jars from the war/WEB-INF/lib directory. Normal - default jars (13.2 MB)

Re: [appengine-java] Re: memcache best practice or framework

2010-06-18 Thread John Patterson
Hi Toby, I made some code public that does what you describe: it is a simple cache interface that has implementations for in-memory, memcache and the datastore. You get about 100MB of heap space to use which can significantly speed up your caching. There is also a CompositeCache class

  1   2   3   >