Skip to content

Set.fetch breaks if set was too large #12

Description

@atitan

Hi

We've been using forgetsy for 2 weeks, and is now receiving SystemStackError: stack level too deep when fetching results.

It turns out Forgetsy::Delta.fetch does not pass option[:n] to secondary_set.fetch, and fetch_raw returns large array (approx. 65K) to secondary_set.fetch for Hash[*result.flatten], which is too many arguments (approx. 131K after flatten) for Hash to handle.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions