요청한 페이지는 현재 사용 중인 언어로 제공되지 않습니다. 페이지 하단에서 다른 언어를 선택하거나 Chrome에서 기본 제공되는 번역 기능을 사용해 웹페이지를 원하는 언어로 바로 번역할 수 있습니다.

Entity Group Version Workaround

At Google Cloud Next '18, we announced that all Cloud Datastore users will be automatically upgraded to Cloud Firestore in Datastore mode once Cloud Firestore becomes generally available. 

The upgrade to the Cloud Firestore storage engine brings the following benefits: 

  • Entity groups are no longer restricted to 1 transaction/second
  • Transactions are no longer limited to 25 entity-groups
  • All queries, not just ancestor queries, are strongly consistent

With the removal of the 1 transaction/second restriction, however, the entity group is no longer a unit of consistency.

When you request an entity group version, Cloud Firestore returns a monotonically increasing number. This number is guaranteed to increase on new writes to the entity group, but it also increases independently of user updates to the entity group. In Cloud Datastore, the entity group version changed only on writes to the entity group.

This new behavior might affect functionality that depends on the current behavior. For example, this would affect application logic like caching that depends on the entity group version updating only on new writes.

As a workaround, you can maintain the current behavior by keeping track of the entity group version manually. Whenever a change is made to entities in a group whose version needs to be tracked, increment a property of a specially designated entity. 

도움이 되었나요?

어떻게 하면 개선할 수 있을까요?
false
10769927523288228805
true
도움말 센터 검색
true
true
true
true
true
95384
false
false
false
Search
Clear search
Close search
Main menu