Questions tagged [ndb]

20 questions
0
votes
1 answer

Rollback in NDB

I am trying to maintain some cross transactional-ity between different services. Basically I have a ndb model which would be processed. There is a chance that the transaction might fail after we have saved an object. How would I rollback in such a…
Shaurya Chaudhuri
  • 3,772
  • 6
  • 28
  • 58
0
votes
0 answers

Best way to save a dictionary which contains non-ASCII characters in Datastore with Python ndb

I have this dict: {'ª': 'a'} and want to save it to ndb object. The superscript ª is a non-ASCII character. Initially I was saving the mapping as a json dump string. I had this class: class MyClass: mapping = ndb.TextProperty() And saving was…
giliev
  • 2,938
  • 4
  • 27
  • 47
0
votes
1 answer

Updating Forign Key in Python Ndb

So on my Ndb Store I have an Entity that looks like this SampleUser
0
votes
1 answer

Writing query with where clause in Python NDB

So I have a query that looks like data = ndb.Key('Account', int(entity_id)).get() is it possible to add a where clause and filter by other fields
-1
votes
1 answer

NDB Cluster TCP/IP Connections Using Direct Connections

I'm using MySQL Cluster Manager for my NDB Cluster. I want to setup direct TCP connections between two nodes (https://dev.mysql.com/doc/mysql-cluster-excerpt/5.7/en/mysql-cluster-tcp-definition-direct.html). I have set up correctly two ndbtmd…
xShink
  • 21
  • 3
1
2