Feature No Code Attached Yet
avatar micker
micker
23 Apr 2024

Actualy media manager have poor performance when we load a folder with many items (image pdf etc) we need to add solution
For my lazy loading isn't a good solution bad ux, no accessibility, bad ui ...
I think adding pagination is realy important and good in any case (better ux, accessibility ok etc..)

i know that already reported but mixed with other subject. i think its more clear for futur release
i am not a coder but i can help for testing

avatar micker micker - open - 23 Apr 2024
avatar joomla-cms-bot joomla-cms-bot - change - 23 Apr 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Apr 2024
avatar brianteeman
brianteeman - comment - 23 Apr 2024

Make sure you enable thumbnails.

avatar micker
micker - comment - 23 Apr 2024

yes maybe but that not a solution if you have 1000 or more pdfs in folder your media manager will be sooooooo slow

avatar brianteeman
brianteeman - comment - 23 Apr 2024

No it won't. If anything 100 pdf should be very quick as there is no thumbnail to read and render

avatar micker
micker - comment - 23 Apr 2024

no not realy you have performance issue with 100 for sure and i have some user with more than 1000 pdf in same folder (they can't change it) what is wrong with a pagination conception ??? that no sens to have a view without solution to load it. i don't understand your reply. Maybe we can't but you can't reply that a user case

avatar brianteeman
brianteeman - comment - 23 Apr 2024

Here is a recording of a live site with 1000 pdf files in a single folder - 1.75gb

Opening that folder in media manager is super fast.!!

chrome_gdEZ6nW7fQ.mp4
avatar richard67 richard67 - change - 23 Apr 2024
Labels Added: Feature
avatar richard67 richard67 - labeled - 23 Apr 2024
avatar micker
micker - comment - 24 Apr 2024

@brianteeman i don't understand, it can be faster on your server, its a relative test not a reply about a most common server. If we talk about accessibility pagination is a good solution too istead of loading soo many item.

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

it can be faster on your server

So it's Joomla's fault if you run on an underpowered server or Joomla should care about the cheapest options out there?

If we talk about accessibility pagination is a good solution too istead of loading soo many item.

I disagree here. Users are familiar with unpaginated views when it comes to file managers (windows/Macos/Linux/Android/etc). For most users a list of files with a pagination would be rather awkward (also it's just a way to very easily distinguish a legacy from a modern system). Technology moved on, most other backends don't have pagination at all...

My 2c

avatar brianteeman
brianteeman - comment - 24 Apr 2024

@micker it was a response to your statement that "if you have 100 pdfs in folder your media manager will be sooooooo slow" proving that it was not correct

avatar micker
micker - comment - 24 Apr 2024

@dgrammatiko i didn't think its a server problem, we just need to think about every case like 4000 items in same folder
@brianteeman if you want we can play with word lol
i don't understand the reply, i can heard :

  • its possible but no ressource
  • its not possible
  • its possible

it a choice
but only reply "i can do it in my server" or "its your users mistake"
we have pagination in article view, we have pagination in backend for category etc ... if i check media manager of other CMS they have it ...
its dommage that joomla media manager doesn't have it

i realy respect joomla community and your works but sometime i didn't understand unproductive reply lol

avatar brianteeman
brianteeman - comment - 24 Apr 2024

You made a statement that it IS so slooow.
I made a statament and provided evidence that your statement was not correct.

avatar micker
micker - comment - 24 Apr 2024

ok i will do a demo
here a folder with more 1000 pdfs (no images)
1 i try to open with media manager => loading is fail
2 i try to open with quantum manager => its not a server problem
https://www.loom.com/share/f104db25beb24552ae3cc90b0fd134ab?sid=b5e318b3-2439-44a3-81e1-5ff7bcd3e2e1
that dommage to need to add an component for that

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

1 i try to open with media manager => loading is fail

That is a bug and has nothing to do with the size of the folder.
This needs some information to figure out (although I know whereabout is the issue) the exact problem.

Could you share the system information for starters?

avatar micker
micker - comment - 24 Apr 2024

i didn't see any error in console browser
here my system information
systeminfo-2024-04-24T10_45_53+02_00.txt

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

Can you confirm that in the PHP information you don't have an entry EXIF
Screenshot 2024-04-24 at 11 49 48 AM

Also I might need a zip of a folder that crashes

avatar micker
micker - comment - 24 Apr 2024

no for exif
about pdf difficult to create a an archive (20gg)

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

The folder has mixed files, ie, png, jpg,pdf,etc or just pdf?

avatar micker
micker - comment - 24 Apr 2024

just pdf

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

FWIW the problem (ive seen it when I was fiddling around) is coming from here:

public static function getMimeType($file, $isImage = false)

But it's impossible to debug without a real test/breaking scenario

avatar web54
web54 - comment - 24 Apr 2024

As we discuss about this point on others (french) communities, we can suggest to add infinite scroll to just load the first (20, 50...? ) ones and then others.
It should be loaded by scroll or by a button.
And if this bothers anyone, it could even be a plugin to activate.
On another cms we do not name there, this is rather efficient ( and ajax filter on the name too).

avatar brianteeman
brianteeman - comment - 24 Apr 2024

FWIW I just worked on a server where the media manager was slow - nowhere near as slow as yours - but still slower than optimum, So as a test I reduced the number of files to approx 25 thinking that would confirm your findings - but it did not change. Then I noticed that the server was slow everywhere - just as yours is in the video. So nothing to do with pagination etc at all.

avatar micker
micker - comment - 24 Apr 2024

@brianteeman it strange that quantum load it (same server)

avatar brianteeman
brianteeman - comment - 24 Apr 2024

everything in your video is slooow

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

@micker could you add a pdf file with a file name that starts with a letter (any) to that directory and report if media manager displays it?

avatar universewrld
universewrld - comment - 24 Apr 2024

Is it really impossible to add pagination in the media manager?

when you open the articles section, you can choose to show 20, 50, 500 or all articles on the first page, why not make this option for the media manager?
what is the problem?

изображение

if someone wants to see all the images at once, they can select show all and then everything will be ok, but give the opportunity for other admins to choose the number of images displayed on the first page!

avatar universewrld
universewrld - comment - 24 Apr 2024

even loading a list of several thousand articles on one page requires some time in the @joomla Control Panel, and here we are talking about images.

I never select to show "5K articles" when I go to the article manager, so why can't I reduce the number of images shown on the first page?

I can always find the image I need through the built-in search.
I don’t want to search for the image I need from 5 thousand other images on the first page.

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

@universewrld since you're obviously have some solid solution why don't you propose your code?

avatar universewrld
universewrld - comment - 24 Apr 2024

and do not forget that we use an Internet connection when we work with our website through the Control Panel.

searching for the image you want in a folder of several thousand images on your home computer is not the same as searching for an image while connected to the Internet.

but even on our home computer we separate the images into different folders, we don't keep all the images in just one folder on our home computer and pagination for a website would be a better solution.

avatar universewrld
universewrld - comment - 24 Apr 2024

@universewrld since you're obviously have some solid solution why don't you propose your code?

I'm the administrator of my website, I do not sell Joomla extensions, I'm not a developer, but I have the same problem with the Media manager, because my website has several thousand articles and several thousand images in one media manager folder.

I have several thousand images in one media manager folder for no other reason than I uploaded images to my website via drag and drop from the desktop, that's why I have several thousand images now in one folder and I think many website editors do also because it is a very convenient and fast way to add images to an article.

this problem has been discussed here for many years and I'm sure someone has previously proposed code here, but that code has been rejected along with some other good ideas and codes to solve them that have been proposed for @joomla over the years.

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

FWIW this is a duplicate: #36533

avatar micker
micker - comment - 24 Apr 2024

Yes i already Say it but this issue list some other Idea
It more simple to speak about one feature
But as i say its not a performance serveur question. Its a feature request in order to allow to manage more media in media manager.

avatar rdeutz rdeutz - change - 24 Apr 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-04-24 15:56:27
Closed_By rdeutz
avatar rdeutz rdeutz - close - 24 Apr 2024
avatar rdeutz
rdeutz - comment - 24 Apr 2024

I closing this as a duplicate, it might be a bit different here but if the other issue is solved then it is solvled here too. No need to discuss two issues

Add a Comment

Login with GitHub to post a comment