Giter VIP home page Giter VIP logo

Comments (4)

jrconlin avatar jrconlin commented on September 27, 2024

Is this related to #205?

from syncstorage-rs.

pjenvey avatar pjenvey commented on September 27, 2024

Is this related to #205?

Nope, this is different.

It involves encoding some more information into the next_offset value passed to the client and an accompanying decoder of said value (as the client passes it back in to the service)

from syncstorage-rs.

jrconlin avatar jrconlin commented on September 27, 2024

Quick overview of work:

  • Create new struct for Offset {timestamp: Option<SyncTimestamp>, offset: i64}
    • Include impl for From, Debug, etc.
  • Convert Paginated to use offset: Option<Offset>
  • Modify Mysql & Spanner to use new Offset heuristic
  • Add tests

from syncstorage-rs.

pjenvey avatar pjenvey commented on September 27, 2024

A new struct may not be totally necessary if offset is just a String. The encode/decode methods can return the extracted types.

On the other hand the extractors could be responsible for producing this new struct and could even potentially validate the format.

This is an optional optimization, so the python version leaves impl. of it up to the db layer, for it to decide if it wants to support it

from syncstorage-rs.

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.