datastore

How can I create composite index without using GAE?

百般思念 提交于 2019-12-23 22:13:13
问题 I'm working on Google Cloud Datastore with Go SDK, and hitting a GQL query error - "Your Datastore does not have the composite index (developer-supplied) required for this query." I'm aware that I need to create the composite index. But according to Google Datastore document, it assumes that the application is up and running as an GAE, while in my case we run it on GKE and Go SDK to work with Datastore. So my question is, do I need to have an GAE instance just for creating an composite index?

Using Dropbox Datastore API as a primary storage option for Android application

廉价感情. 提交于 2019-12-23 10:39:38
问题 I'm looking for a way to sync SQLite data of my Android app across devices. Dropbox Datastore API seems to fit just fine (at least conceptually). I've studied available examples, but cannot yet understand how does this API fit into Android data access worldview with it's ContentProvider=>ContentResolver=>Adaptor=>ListView machinery. My guess is that certain plumbing is required for smoother integration of Datastore API, maybe even as a drop-in replacement of SQLite. And the best place where

NSUrl is not stored as absolutestring in NSUserDefault

孤街浪徒 提交于 2019-12-23 09:09:10
问题 I am referring Previous Post for storing NSURL of iPod Library in NSUserDefault. But it is not stored in NSUserDefault after application is closed. I am using other NSStrings to store in NSUserDefaults which is perfectly done, But when i store NSUrl as absolute string.. it does not stores the value. What could be the reason?? EDIT Following code i am using to save NSUserDefault Value: currentItem = [collection.items objectAtIndex:songCount]; songURL = [currentItem valueForProperty

Google App Engine - increasing in Datastore operations

随声附和 提交于 2019-12-23 04:58:16
问题 Today, we've been charged for the first time in Google App Engine, and the main cause seems to be Create, Read and Delete operations to the Datastore . I'm trying to figure out what cause this - or talking about millions of operations which is weird. We have half-daily task which delete 750 entities and write 750 new entities, so I believe its something we should take care of - but even then, how can it come to millions? Another question is - if I'm using remote api, there is any extra affect

Compare many date ranges in google app engine datastore (Many to many, Python)

耗尽温柔 提交于 2019-12-23 01:57:11
问题 I have two data sets in google app engine datastore. class First_Set(db.Model): start_time = db.DateTimeProperty() end_time = db.DateTimeProperty() data1 = db.FloatProperty() ... class Second_Set(db.Model): start_time = db.DateTimeProperty() end_time = db.DateTimeProperty() data2 = db.FloatProperty() ... (They have other different data that's why they're in different datasets.) I'd like to find the datastore IDs all the overlapping start_time and end_time across two datasets, ideally without

Google Datastore Strong consistency and Entity Group max size

拟墨画扇 提交于 2019-12-22 10:00:07
问题 In a shared expenses app that shows payments dues and shared expenses details for each group. As a financial application, so many operations are transactional, which requires strong consistency to ensure data integrity. We used Entity Groups and ancestor queries which seems to have solved the issue of strong consistency, this caused the entity group to be large in size. As the shared 'group' is now the parent of members, expenses, payments, dues..etc. Until now we don't see a problem, but we

Enforcing Unique Constraint in GAE

寵の児 提交于 2019-12-21 04:52:15
问题 I am trying out Google App Engine Java, however the absence of a unique constraint is making things difficult. I have been through this post and this blog suggests a method to implement something similar. My background is in MySQL.Moving to datastore without a unique constraint makes me jittery because I never had to worry about duplicate values before and checking each value before inserting a new value still has room for error. "No, you still cannot specify unique during schema creation." -

Realistic Data Backup method for Parse.com

余生长醉 提交于 2019-12-20 09:37:02
问题 We are building an iOS app with Parse.com, but still can't figure out the right way to backup data efficiently. As a premise, we have and will have a LOT of data store rows. Say we have a class with 1million rows, assume we have it backed up, then want to bring it back to Parse, after a hazardous situation (like data loss on production). The few solutions we have considered are the following: 1) Use external server for backup BackUp: - use the REST API to constantly back up data to a remote

Trying to load data that is being passed by using a store

青春壹個敷衍的年華 提交于 2019-12-19 11:57:10
问题 I am trying to get data that is being passed and load it into various textfields. Right now, I have a .html file which contains this: <script type="text/javascript"> var res = {"address":"","city":"","state":"","zip":""}; </script> Then, I have a .js file which contains my entire layout with all the textfields, etc. and my entire store. This is what I have so far as my store trying to load the data, but I am not sure what the correct method is to try and get the data from the html file and

Blackberry - application settings save/load

萝らか妹 提交于 2019-12-17 19:12:10
问题 I know two ways to save/load application settings: use PersistentStore use filesystem (store, since SDCard is optional) I'd like to know what are you're practicies of working with application settings? Using PersistentStore to save/load application settings The persistent store provides a means for objects to persist across device resets. A persistent object consists of a key-value pair. When a persistent object is committed to the persistent store, that object's value is stored in flash