Giter VIP home page Giter VIP logo

Comments (3)

frsyuki avatar frsyuki commented on August 16, 2024

Implementation idea:

  • digdag push command generates a random if -r option is not set
    • discussion: another idea is to use local timestamp (OffsetDateTime e.g. 2016-06-01T01:02:03+0900). But I think this is unnecessary because revisions.created_at is saved anyways.
    • discussion: another idea is to use SHA1 hash of project archive. But this is not good because users can't upload the same contents twice as 2 different revisions.

Future idea:

  • Create a REST API and/or CLI command that returns sequential index of revisions in a project. With it, a revision can be referenced by projName#index format (e.g. myproj#1, myproj#2, ...).
    • But this causes a potential performance problem: calculating index of the revisions need O(N) CPU time on RDBMS (select row_number() over (partition by project_id order by id)). If an user pushed a lot of revisions to a projects, listing up revisions may take time.
    • To solve this issue, revisions table need index column. But setting that number at INSERT is not obvious implementation on RDBMS.
    • And I don't think such index is important to have. So, this is TODO.

from digdag.

rbparrish avatar rbparrish commented on August 16, 2024

Agree, using a UUID if a -r is not specified makes sense for now.

from digdag.

yoyama avatar yoyama commented on August 16, 2024

Already resolved. Close it.

from digdag.

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.