Git Product home page Git Product logo

Comments (1)

imtbl avatar imtbl commented on July 25, 2024

Hey,

I was wondering if it were possible to be able to sort by date?

It would certainly be possible to add. Though iirc, hydrus server doesn't store any date, so this would only be useful when pulling the data from hydrus client (and I'm generally somewhat averse to implementing features that don't work with both client and server).

Also the random sort retains its order, even once other filters have been applied and you can't change the random order unless the server is restart.

SQLite doesn't support seeding the random() function; that means it's unusable in combination with paginated results. So instead, whenever a sync runs, we insert a random integer into the random column of the files table and use that for "random" sorting. Updating that on demand would be potentially very slow (depending on the number of files) and would also cause complications with multi-user instances (as the instance would effectively be unusable during this update). So overall, that's not a feature I'd like to see added.


I am not too opposed to the first idea (sorting by date), though I also no longer add new features to hyve; it's basically in a maintenance-only state. I'll leave this open and label it with help wanted in case someone else wants to tackle it.

from hyve.

Related Issues (8)

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.