Skip to content

Commit 5d6a007

Browse files
Patryk Lesiewiczlaurenzlong
Patryk Lesiewicz
authored andcommitted
feature(firestore-counter) Lower SHARDS_LIMIT to 100. (#149)
Firestore transactions perform best for up to 100 documents.
1 parent 744cdbb commit 5d6a007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore-counter/functions/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { Aggregator, NumericUpdate } from "./aggregator";
2929
import { FieldValue } from "@google-cloud/firestore";
3030
import * as uuid from "uuid";
3131

32-
const SHARDS_LIMIT = 499;
32+
const SHARDS_LIMIT = 100;
3333
const WORKER_TIMEOUT_MS = 45000;
3434

3535
interface WorkerMetadata {

0 commit comments

Comments
 (0)