1

Datastore 설명서에 따르면 엔티티 그룹에 대한 최대 쓰기 속도는 초당 1입니다.Google Cloud Datastore의 엔티티 그룹 한도에 대한 쓰기로 간주되는 것

https://cloud.google.com/datastore/docs/concepts/limits

나는이 시나리오는 하나 또는 여러 개의 쿼리로 그 한계를 향해 카운트 있는지 알고 싶습니다.

스택 오버플로에 대해서도 비슷한 질문이 있지만, 일 수 있습니다.

  1. 사용자/1
  2. 사용자 2

/가 그런 다음 2 개 코멘트 기관, 각 미만을 저장

const datastore = require('@google-cloud/datastore')(); 

const key1 = datastore.key(['Users', 1, 'Comments']); 

const comment1 = { 
    userId: 1, 
    commentBody: '...', 
    ts: new Date(), 
}; 

const key2 = datastore.key(['Users', 2, 'Comments']); 

const comment2 = { 
    userId: 2, 
    commentBody: '...', 
    ts: new Date(), 
}; 

datastore.save({ 
    key: key1, 
    data: comment1 
}, (err) => { 
    // 
}); 

datastore.save({ 
    key: key2, 
    data: comment2 
}, (err) => { 
    // 
}); 

답변

0

여기 실체를 보면, 당신은 2 개 개체 그룹이 엔티티 그룹. 엔티티 그룹당 1 개의 쓰기로 계산됩니다.

+0

나는 그렇게 바랬다! Dan 감사합니다. –