خرید بک لینک

Vote count: 0

Basically I have a User entity and that user will have followers. One possible way I could think of on how to model this is to have a multi-valued property of type Key, which will store Keys of the followers in a list.

Like this..

DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();

Entity userEntity;

Key k = entity.getKey();

Entity user = new Entity("User");
List<Key> followers = new ArrayList<Key>();
followers.add(k);
user.setProperty("FollowersList", followers);
datastore.put(user);

I read somewhere that App Engine limits you to 5,000 entries to in a multi-valued property which is something I absolutely do not want.

I am new to NoSQL databases in general. How should I do this?

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 21 فروردين 1395 ساعت: 1:57

صفحه بندی