Firestore这种情况是否可能导致比赛状况?

时间:2018-09-13 08:10:05

标签: google-cloud-firestore

我想了解Firestore的比赛条件。
这两种情况,种族状况可能会发生吗?
还是只在完全相同的文档上进行多次写作?

  1. 多个在同一集合中创建,但不是同一文档。
    例如:class MainFrame(wx.Frame): """Class MainFrame.""" def __init__(self, parent, id): # ...same as before... self.Bind(EVT_PROGRESS, self.OnResult) # Bind our new custom event to a function def OnStart(self, event): # Trigger the worker thread unless it's already busy if not self.worker: self.status.SetLabel('') self.worker = WorkerThread(self) def OnResult(self, event): """Our handler for our custom progress event.""" status, progress = event.GetValue() self.status.SetLabel(status) if progress: self.gauge.SetValue(progress)
  2. 同一集合中有多个更新,但文档却不同。
    例如:Firestore.collection('posts').document(unique id).set()

0 个答案:

没有答案