Giter Site home page Giter Site logo

Keep of log of every uploaded file about filez HOT 1 OPEN

filez avatar filez commented on July 24, 2024
Keep of log of every uploaded file

from filez.

Comments (1)

steamraven avatar steamraven commented on July 24, 2024

A big hurdle to a file download log is that FileZ deletes file information on a regular basis. To preserve this information, I see three options:

  1. Move file information to a archive table - This necessitates an extra table and correlating information from the logs becomes more complicated (unions, etc)
  2. Don't delete the information (but do delete file and set file size to zero)
    • Pros - Simple correlation, Minimize data repetition
    • Cons -
      a. ID collision - can be remedied by large hash sizes
      b. Large File table - Database should be able to handle this with appropriate indices
      c. File information always available - could put a check in code to say not found say 3 days after expiration
      d. Lots of files in admin screen
  3. Duplicate relevant info in log
    • Pros -
      a. simple to implement.
      b. Very easy data viewing (no joins).
      c. Only retains information needed,
      d. File table kept clean
    • Cons -
      a. Data duplicated on every download (and upload)

This is only off the top of my head. Please feel free to add comments:

I have created an implementation: https://gist.github.com/1012495

This of course needs a table. Unfortunately, I only have postgres statements: https://gist.github.com/1012537

from filez.

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.