GAE Modify data in local object storage

I am working on an application using GAE in eclipse and I have a bunch of data objects. Sometimes I need to change their type, i.e. StringTextso that they can store more data.

What is the fastest way to do a bulk update in a data / object store? I know that maybe I could write Java code to iterate over each object, but of course, is there an easier way?

+3
source share
2 answers

Usually there is no other way than repeating the store and manually changing the data. The data warehouse is not available. However, starting from version 1.3.3 of the SDK, it is now possible to use SQLite as a data warehouse data warehouse. To enable, set the flag --use_sqlite = true

You will need to find the SQLite file and be able to use any SQLite client to manage the data.

UPDATE: As Nick Johnson noted, SQLite support is available only for the Python SDK and the data is encoded, making it difficult to directly edit the contents of tables depending on the change. This invalidates this answer, given that the poster is looking for a lightweight Java based solution: /

+3
source

appengine-mapreduce, Java, Python.

String Text, , - , .

+1

Source: https://habr.com/ru/post/1754909/


All Articles