gae-datastore

Google App Engine DataStore Text UTF-8 Encoding Problem

I'm building a gwt app that stores the text of random webpages in a datastore text field. Often the text is formatted UTF-8. All the files of my app are stored as UTF-8 and when I run the application on my local machine the entire process works fine. UTF-8 text is stored as such and retrievable ftom the local version of the app engine ...

What is the best way to handle one to many relationships in the low level datastore api?

I've been using the low level datastore API for App Engine in Java for a while now and I'm trying to figure out the best way to handle one to many relationships. Imagine a one to many relationship like "Any one student can have zero or more computers, but every computer is owned by exactly one student". The two options are to: have th...

google cse customization or google CSE dynamic navigation?

hi i am using google cse in my blog.. i want to customize the results like....i will explain with simple scenario.. In my webpage haing the three columns.. middle column having displaying search results..i have left column having the catagerization like products(etc based on the meta tag keywords).. if the user is searching for a par...

Need Help Creating GAE Datastore Loader Class?

Need Help Creating GAE Datastore Loader Class for uploading data using appcfg.py? Any other way to simplified this process? is there any detailed example better than here When try using bulkloader.yaml: Uploading data records. [INFO ] Logging to bulkloader-log-20100701.041515 [INFO ] Throttling transfers: [INFO ] Bandwidth: 25...

google app engine downloading datastore entity with db.ListProperty

Using the following link: http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data I am creating an bulkloader to download a datastore entity that is defined as follows: class ReportEntry(db.Model): """A report from a Jinx instance running in the field.""" entry_type = db.StringP...

datastore get previous/next appengine

In MySQL you can get the next or previous record based on the key/id. Anyone know how i can achieve this in app engine (im using python) by only knowing/passing the key? Thanks ...

Fetching the nth element from app engine datastore

I'm looking for a effective and scalable way of doing the following with the java low level API. I have a query with some sort orders and i would like to fetch the Nth entity. Using the offset argument doesn't seem like a good idea. EDIT Background: I'm trying to write an abstraction layer for DS with a Memcache. The data stored in the ...

Is it safe to cache DatastoreService object in static field? (GAE Java)

I have a code snippet: private static DatastoreService _db; public static DatastoreService db() throws IOException { if(_db==null) _db = DatastoreServiceFactory.getDatastoreService(); return _db; } Is this safe approach? I cached the DatastoreService object statically and re-used over a single servlet execution. However, I ha...

Is it possible to maintain the DB cache multiple locations with single DB?

I have DB with table in INDIA, for that table I am maintains the table cache here..but i am interested to maintain the cache in UK with the same table (I am not interested to create the same table in the UK).. it is possible? what requirements to be required for this one/ Thanks, Murali ...

Editing a Date field in Appengine Data Store Viewer

Does anyone know how edit a field with type 'Date' in the appengine data store viewer in production? It seems like it maps to an int field and I tried putting in the number of milliseconds since epoch but that didnt work. ...

Edit Text Field in Appengine Datastore Viewer

Does anyone know how edit a field with type 'Text' in the appengine data store viewer in production? ...

Reference ID in GAE

I have a feeling the answer is simple and documented, but I'm absolutely missing it: Is there a way, using Python and webapp through Google App Engine, to pass the id field of a record to the template? I'm fairly new to the app engine, and yes, I have searched all around the Google Documentation to find this. ...

Is GAE a viable platform for my application? (if not, what would be a better option?)

Here's the requirement at a very high level. We are going to distribute desktop agents (or browser plugins) to collect certain information from tons of users (in thousands or possibly millions down the road). These agents collect data and periodically upload it to a server app. The server app will allow for analyzing collected data...

Import large chunk of data into Google App Engine Data Store at one go...

Hi I have a large CSV file, approx 10 MB in size, which contains all the data which need to be imported in the Google App Engine DataStore. I tried following approaches to perform import but all the times it failed in half way. Import using mapping a command to url and then executing url, failed because of request time out... Import...

GAE datastore export_transform

Bulkload automatic configuration bulkload.yaml. How to export reference property for key reference field back to datastore from csv. - property: datacenter external_name: datacenter # Type: Key Stats: 2 properties of this type in this kind. import_transform: transform.create_foreign_key('DataCenter') export_transform: transform....

Informing PersistenceManager about change

Hi, I am building an app with Java witch will be deployed on Google App Engine. I on of my persistence capable object I have an Collection of Strings. Is there a way to inform PersistenceManager about an change in this collection, while, as I understand, PersistenceManager only detects changes when property have changed. Luke. ...

What is the size my different datastore entities?

I wanted to view the size of my datastore entities OR be able to estimate them some how? (I cant see where memory size info is on Appstats Console or the Development Console?) My problem is that I want to know the byte size of 2 types of entities: Entity A The key_name is 20 characters. (ie. {AAAA}{BBBB}{CCCC} ). Only one TextProper...

GAE: Is it necessary to call fetch on a query before getting its cursor?

When the following code is executed: q = MyKind.all() taskqueue.add(url="/admin/build", params={'cursor': q.cursor()}) I get: AssertionError: No cursor available. Why does this happen? Do I need to fetch something first? (I'd rather not; the code is cleaner just to get the query and pass it on.) I'm using Python on Google ...

Matching all records in a datastore query

Is there a way to substitute: def get_objects(attr1,attr2,..): objects = Entities.all() if attr1 != None: objects.filter('attr1',attr1) if attr2 != None: objects.filter('attr2',attr2) .... return objects With a single query: Entities.all().filter('attr1',attr1).filter('attr2',attr2) By using som...

App engine StringListProperty

I have a model which looks like this: class test (db.Model) : tagList = StringListProperty() siteName = StringProperty() I am storing tags in "tagList" and would like to run a query where I can get all test entities containing a particular tag in their tagList. Is this possible? ...