GithubHelp home page GithubHelp logo

Comments (5)

hkdsun avatar hkdsun commented on August 18, 2024 1

AFAIK, we don't use multi-column primary keys internally and there is no work planned on our part for this.

I'll be happy to review a plan for this. I believe @shuhaowu had started a branch some time ago to contain all usage of primary keys in a struct and that will likely be where you want to start looking.

from ghostferry.

shuhaowu avatar shuhaowu commented on August 18, 2024 1

Supporting composite and non-uint64 PK has gotten more difficult I believe. That branch would have only supported single column strings as PK. Doing it in a more generic way requires some more work.

There's no plan to do this on our side, but PRs are welcome and we'll review them.

from ghostferry.

shuhaowu avatar shuhaowu commented on August 18, 2024

We can potentially solve this issue as long as you have a pagination column (a unique integer column that can be iterated over in ascending order). Ghostferry needs to be changed to take a configurable pagination column and iterate over that column instead of the primary key. Any PRs to solve this issue should probably take a variant of this approach as oppose to locking onto the primary key.

from ghostferry.

jarthorn avatar jarthorn commented on August 18, 2024

@shuhaowu we are really interested in this as part of an ongoing project. In this case we will be retaining an int id iteration column, it would just not be the primary key any more. Do you have any bandwidth to either take this on, or help us out with a high level sketch of how to fix this? We are willing to contribute someone to work on it if you have other priorities!

from ghostferry.

shuhaowu avatar shuhaowu commented on August 18, 2024

This is fixed on the latest master.

from ghostferry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.