-
Notifications
You must be signed in to change notification settings - Fork 639
Closed
Labels
api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.
Description
I noticed when running getRows that I would sometimes get 0 results. No error was thrown so this took a while to uncover, and eventually I had to do it in batches:
let rows = [];
const MAX_KEYS = 1000;
for (const i = 0; i * MAX_KEYS < rowIds.length; i++) {
const [newRows] = await eventsTable.getRows({
decode: false,
keys: rowIds.slice(i * MAX_KEYS, (i + 1) * MAX_KEYS),
filter: [{
column: {
cellLimit: 1,
},
}],
});
rows = rows.concat(newRows);
};I'm not sure if this is even the right approach, since 1000 seems pretty arbitrary.
Potentially this is related to #1755? However I was only using ~9k keys which where ~100 characters each which should be under the 4mb limit.
Metadata
Metadata
Assignees
Labels
api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.