• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

File and image storage engine and performance

Scheduled Pinned Locked Moved Unsolved Technical Support
perfomance
4 Posts 3 Posters 340 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • volanarV Offline
    volanarV Offline
    volanar Translator
    wrote on last edited by
    #1

    I noticed that all theme files and images are stored in the same folder. Usually they are sorted into folders by download date (year, month). Doesn't this affect performance when there are a huge number of files in one folder?

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to volanar on last edited by
    #2

    @volanar what do you mean by theme files and images?

    volanarV 1 Reply Last reply
    0
  • volanarV Offline
    volanarV Offline
    volanar Translator
    replied to PitaJ on last edited by
    #3

    @PitaJ The images are now being saved to a shared folder (/assets/uploads/files/). Big performance problems are bound to arise in the future. You must upload files to folders by upload date (for example, current year - current month - current date). The more scalable the platform, the deeper the folder structure. This is a standard mechanism and is used in CMS and various web applications (for example, WordPress, drupal, IPS, XenForo, etc.)
    131466042-70edd9d1-b019-4324-bf2a-08a435639544.png

    gotwfG 1 Reply Last reply
    0
  • gotwfG Offline
    gotwfG Offline
    gotwf Community Rep
    replied to volanar on last edited by gotwf
    #4

    @volanar

    @volanar said in File and image storage engine and performance:

    You must upload files to folders by upload date (for example, current year - current month - current date).

    I would not necessarily say "must" as there can also be performance penalties from deep hash structures that are minimally populated.

    Caching is also a factor that can very favorably impact image delivery. At least w.r.t. the most popular ones.

    One more fer' the road: Many cloud providers are using SSD backed storage modern days. Is file I/O actually your bottleneck? Hmmm... 🤔

    How many images are you envisioning for YOUR site/use case?

    Just a couple shootin' from the hip thoughts. 🤔

    ymmv. 🐕

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development