gae-datastore

App Engine Bulk Data Upload URLError: "Connection reset by peer"

Hi. I'm trying to upload some records to my local data store using appcfg.py Only a small number of records are actually inserted and I get the following output (with a ton of errors): $ appcfg.py upload_data --config_file=bulkloader.yaml --filename=/output.csv --kind=AutoCompleteIndex --url=http://localhost:8084/remote_api . ...

App Engine Bulk Data Upload- Authentication Error

Hi guys. When I try to upload data using appcfg.py I get an authentication error regardless of my login details being completely correct. appcfg.py upload_data --config_file=bulkloader.yaml --filename=/output.csv --kind=AutoCompleteIndex . Application: qwertifyy; version: dev. Uploading data records. [INFO ] Logging to bulkloader...

Google App Engine local datastore viewer not working?

I learned about how to browse my local App Engine Datastore from this handy question. But now I'm using App Engine on a new machine, and the URL http://localhost:8888/_ah/admin is not working? It returns a 404 NOT_FOUND. My App Engine instance is definitely running on port 8888. I also just updated to the latest version. Any idea on why ...

How can I Create a List of References in Google App Engine Datastore?

I have a Foo type in my Google App Engine datastore. I'd like it to link to a series of other Foo types, call them prerequisites. I can use the ListProperty type to make a list of simple value types but I'm not sure how to do this with references. What is the recommended approach for doing this? ...

GWT on GAE application with Web Services

I'm interested in building a Google Web Toolkit (GWT) application that will run on the Google App Engine (GAE). I'd also like to expose a web service that shares the same datastore and can receive posted data from a different web application hosted elsewhere. Would using Restlet be a good solution, or is there a simpler approach that do...

App Engine data modeling problem

I'm kinda new to modeling my data model for efficient querying with GAE, but have extensive knowledge with RDBMS. Here's the problem: I got roughly a million terms (strings) and need to query and compare associated numerical values as a time series with weekly data points. Think of it as a graph with time on the X axis and a linear...

IS DataNucleus GAE JPQL different from JPA1 standard?

Query q = em.createQuery("SELECT u FROM SSUser u WHERE u.emailId=?1") .setParameter(1, email); I thought this would be a valid query, but then I get: No results for query: SELECT FROM SSUser u WHERE u.emailId=?1 What's the right way to express this query? ...

Mapping Data for a Google App Engine Blog Application:

My reading is limited as of yet, but so far here are some key points I have identified for using the GAE Datastore: It is not a relational database. Data duplication occurs by default across storage space. You cannot 'join' tables at the datastore level. Optimized for reads with less frequent writes. These lead me to the following da...

which types require using JDO dependent="true" for cascading deletes?

I'm using the JDO annotation dependent="true" to delete my owned child classes like this: @Persistent(mappedBy = "parent") @Order(column="PARENT_CHILD_IDX") @Element( dependent="true" ) private ArrayList< Child> children = new ArrayList< Child >(); Do I need to do this for other non-custom data types like Long, String, Link, Blob,...

How to configure a Google Web Toolkit application with Datanucleus + PostgreSQL

Hello there! =) I created an application using GWT and support for the Google Datastore but now i'm trying to move my application to my own server and i'm also trying to detach my app from Google App Engine and from Datastore. To be more precise: I want to stop using Google Datastore and start using JDO and Datanucleus but with Postgre...

Is there a datastore viewer in google app engine launcher?

Hello. Is there a datastore viewer in Google App Engine Launcher? Something similar to the Datastore Viewer that can be found within the GAE website? Thanks. ...

Dynamically loading Python application code from database under Google App Engine

Hi, I need to store python code in a database and load it in some kind of bootstrap.py application for execution. I cannot use filesystem because I'm using GAE, so this is my only choice. However I'm not a python experienced user. I already was able to load 1 line of code and run it using eval, however a piece of code with two lines o...

How to implement Google-style pagination on app engine?

Hi. See the pagination on the app gallery? It has page numbers and a 'start' parameter which increases with the page number. Presumably this app was made on GAE. If so, how did they do this type of pagination? ATM I'm using cursors but passing them around in URLs is as ugly as hell. ...

How to query java appengine datastore VIEWER for entity using a Long id

Hi all, I'm trying to do something relatively straightforward and something I think I used to be able to do. I'm trying to use the admin interface to query my datastore using a long id. The entity in question is defined as: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true") public class Notification { ...

GAE Datastore - Reduce Cursor String (base 64) Length

Currently, I'm when passing around a cursor string in a URL, and it looks very ugly. I was wondering if there was a way to shorten these? I was thinking I could encode it & decode it somehow, but I don't really know where to start looking for information on this. The cursor string is a base 64 encoded string. Any way to shorten it witho...

Cascade delete in Google app engine datastore

Hi I'm having the fallowing classes in Google app engine import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; public class A { @PrimaryKey @Persistent String pk; @Persistent(dependent = "true") private B b; . . . } and import javax.jdo.annotations.IdGeneratorStrategy; im...

How to retrieve uploaded files from (Java) GAE datastore?

Hi guys, first of all, sorry I'm a GAE noob so there are lots of things that I need specific answers. My problem is that I have successfully created a servlet that allows the app users to upload their files. Basically, I created an entity with a Blob attribute to store the file's contents. The uploaded file is made persistent in the data...

[gae] problem transaction commit, retry , ConcurrentModificationException

Hello, i've got some problems with transactions when there is the exception java.util.ConcurrentModificationException. When i've got this exception, i tried a retry but when i'm looking in my datastore viewer my incrementation didn't work. For example when i'm testing with 30 simultaneous users, my data was incremented 28 times. 2 i...

google app engine: problem getting objects from datastore in a task

My application constructs a Parent object in a static factory, along with it's predetermined Children, and then starts up tasks to run some computation on the Children, like so: public static Parent make(User owner, List<Integer> data, int size) { Parent result = new Parent(owner,data,size); PersistenceManager pm = Persi...

Objectify - How to filter by boolean?

Ive hit a wall using objectify for the google appengine datastore when filtering on boolean values this is roughly what ive: class Task implements Serializable { ... boolean failed; ... } no matter what i do when i search, i always get an empty response although there are objects in the db that has failed=false examples: ofy().q...