Investigate removing the cursor and merge it back with the DataIterator

Open
#306 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
databases

Research direction

Start by locating Cursor, DataIterator, IterativeVerifier, and InlineVerifier, then read the outdated PR #139 for the earlier design context. Trace how Cursor is used by DataIterator and the verifiers before merging its iteration functionality into DataIterator. Done means Cursor and IterativeVerifier are removed without leaving their former responsibilities or references behind.

Written by the indexing model from the issue text.

Description

We used to iterate through the data directly in the DataIterator. At one point, we developed the IterativeVerifier, which caused us to refactor the DataIterator such that the data iteration part became a Cursor, so it can be reused by the IterativeVerifier. With the InlineVerifier superseding the IterativeVerifier, the need for such a Cursor has been eliminated. To simplify the codebase, we should merge the functionality of Cursor back into the DataIterator.

We also need to remove the IterativeVerifier after that. See this outdated PR for reference.

Dominant language
Go
Stars
858
Forks
77
Avg merge
10d 4h
Merged PRs (30d)
4

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shopify/ghostferry

All issues in Shopify/ghostferry

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.