FAQ Database Discussion Community


How to add a filter to a datastore query based on condition

google-app-engine,go,datastore
I am receiving parameters from a POST and based on if those parameters exist I want to alter the datastore query. Here is an example where we may or may not receive a "title" variable from the post message. If it does exist, I want to include it in the...

What is the difference between a high-level and low-level Java API?

java,datastore
I'm learning about Google App Engine and Googles datastore from here and they keep mentioning "low-level Java API." What exactly is a "low-level Java API" and how does it differ from a "high-level Java API" (which I assume must also exist since there is a low-level one?" Google searches yielded...

Fetching entities from datastore where Entity.key.IN([keys…])

database,google-app-engine,app-engine-ndb,datastore
I'm trying to fetch a long list of entities, and those entities all refer to one of a few different related entities. It's explained in the comments, but basically many "items" reference to a few "Company"s. I don't want to have to make multiple queries for each key in unique_key...

Optimized MySQL data store

mysql,optimization,datastore
I would like to store user information in a table. First example The fields are eg. "has car", "has flat", "has cat", "has dog", "has LCD TV", "has notebook"... The value of fields can be y/n or y/null (null means empty value in table). The fields above are filled random,...

How can you retrieve key of a datastore Entity

java,google-app-engine,gae-datastore,datastore
I have created datastore entity like below. I am trying to get the key of the entity by looping the query result. Also Is this the right way to get key of an entity? DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); Entity e = new Entity("User"); e.setProperty("userName", user.getUserName()); e.setProperty("email", user.getEmail()); ds.put(e); Query q...

I cant add text to textProperty

python,google-app-engine,datastore
I need to store a large text(70k char) to datastore. what I did is working fine on localhost. But When I upload it to gae it doesnt store anything. it just shows "{}" if I rename textProperty to StringProperty and change the text, it works. where did I do the...

Does file_get_contents store any data

php,cron,datastore,temp
I'm using file_get_contents as below and set cron job to run that file every hour, so it opens the described url which is for running some other functions. Now I have two questions completely similar. <?php file_get_contents('http://107.150.52.251/~IdidODiw/AWiwojdPDOmwiIDIWDIcekSldcdndudsAoiedfiee1.php'); ?> 1) if the above url returns null value, does it store anything...

How do I share entity objects between multiple endpoints in Google App Engine using appengineEndpointsGetClientLibs?

java,android,google-app-engine,android-studio,datastore
I have an entity to send a contactList to a java enpoint in Google App Engine: @Entity public class ContactList { private ArrayList<Contact> list; public ArrayList<Contact> getList() { return list; } public void setList(ArrayList<Contact> list) { this.list = list; } } I have another endpoint that I would like to...

Display message on gridPagingToolbar based on restDataStore length

html,jsp,datastore
I am new to jsp / servlet and related domains. I am trying to display a message on a gridPagingToolbar based on length of myDataStoreDs. <j:gridPagingToolbar dataStoreId="myDataStoreDs" gridId="myExampleGrid" exportEnabled="true"> <jsp:attribute name="startItems"> myLib.Util.removeNulls([null, "${message}" , <j:button type='edit' labelKey="myLabel" handler="myHandler" hidden="true" itemId="myBtn"/> ]) </jsp:attribute> </j:gridPagingToolbar> The variable "message" should have a String...

WPF After login,store username to another xaml [closed]

wpf,datastore
I have 2 xaml window and i want to store data between windows.How can i do?

Boltdb-key-Value Data Store purely in Go

go,backend,datastore,key-value-store,boltdb
Bolt obtains a file lock on the data file so multiple processes cannot open the same database at the same time. Opening an already open Bolt database will cause it to hang until the other process closes it. As this is the case,is there any connection pooling concept like various...

how to store data locally

ios,datastore
So i have no idea how to manipulate data effectively. Currently I am querying all my data (messages) from my backend and manipulating it within the view controller file and passing it among view controllers via segues. I realize this is probably ridiculous for a messaging app. I am thinking...

Ehcache cache .data files have escaped unicode characters

windows,ehcache,datastore
My caches' data filenames seem to contain escaped unicode characters in the data store. Strangely only capital letters in the cache names are replaced. Eg: %004c%004f%0043%0041%004c%004dodifier%004cinking%004danager.data Should be: LOCALModifierLinkingManager.data Why is this the case? How can I fix it? Environment: Windows 7 x64...

How do I validate data on the backend which is pass in from Ember Data

validation,ember.js,ember-data,sails.js,datastore
For the past couple of days I've been playing with Ember CLI, using the SANE stack. After getting everything working and making a todo application like the one from the todo MVC website (todomvc.com), I'm now trying to validate data on my server (a sails js server). For example, when...

How to view app data on google app engine datastore?

google-app-engine,gae-datastore,datastore
I have made an android app which saves user input data in a googele app engine datastore. I want to view the stored entity on google developers console. How can I do it? On left hand side menu I can see Query menu which takes me to my entity page...

Find Maximum Index in Google Datastore (Pagination in Blog System)

python,google-app-engine,gae-datastore,datastore
I have a series of blog posts as entities. I will receive a URL that looks like this: /blog/page/1. I would like to access the most recent 5 posts in this case. In the case of /blog/page/2, I want the 6-10th most recent. So allow me to do an X-Y,...

Google App Engine Java Datastore Query - Limit Results?

java,jsp,google-app-engine,datastore
I am trying to fetch entries from the datastore and need to filter them by genre: <%@ page import="com.google.appengine.api.datastore.Query.Filter"%> <%@ page import="com.google.appengine.api.datastore.Query.FilterPredicate"%> <%@ page import="com.google.appengine.api.datastore.Query.FilterOperator"%> <%@ page import="com.google.appengine.api.datastore.*"%> <%@ page import="com.google.appengine.api.datastore.Query.*"%> Query confQuery = new Query("Track"); Query.Filter topicFilter = new...