Coder Social home page Coder Social logo

Comments (2)

rdlab-upc avatar rdlab-upc commented on July 24, 2024

@alx-tuilmenau I totally agree with you. IMHO, there is a possible optimization for your proposal, instead of deleting all previews "pass due" at once, delete groups of 50/100/300 images every cron execution in order to decrease filesystem/DB stress.

Eventually, DB+filesystem will be "clean" without collateral issues. Most NC instances will have hundreds of users and thousands of previews...

from server.

alx-tuilmenau avatar alx-tuilmenau commented on July 24, 2024

@rdlab-upc of course, and this should be done during the maintenance time set in config.
I discovered it first because I had to wait a long time for re-organizing the underlying filesystem (for other reasons) and noticed it needed days for the preview folder. My ugly cleanup script needed about half a day to delete ca. 300k images and 400k folders older than 1 year (but the storage is on Nearline HDDs, so it's not fast).

from server.

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.