macopedia / typo3-azurestorage

TYPO3 FAL driver extension for Microsoft Azure Blob Storage
MIT License
4 stars 5 forks source link

Pagination on ListView #9

Closed zbychu555 closed 6 years ago

zbychu555 commented 7 years ago

Is it possible to enable pagination on ListView? When I have more than ~50 images - opening a folders takes a lot of time and sometimes I get timeouts.

benjaminhirsch commented 7 years ago

Hm this shouldn't be part of the driver itself, I guess this is handled by the FAL. The driver is build against the the AbstractHierarchicalFilesystemDriver which doesn't offer any possibility to do something with paging. Normally this should work. I will have a look into it anyway! :)

benjaminhirsch commented 7 years ago

I guess I've found a solution to speed thinks up! Currently I'm fetching the complete blob, even for lookups. I will change this behaviour in the next update, that only the meta data is fetched! I think this will speed up thinks massively - at least I hope so 😄

zbychu555 commented 7 years ago

Thank you! Will be great!

benjaminhirsch commented 7 years ago

I'm working on a new release, hopefully I will bring it online later this day. I was able to achieve a good increase performance wise and paging should also work then. 😃

benjaminhirsch commented 7 years ago

@zbychu555 please ty out Version 0.3.1 and let me know if It's better now! :)

zbychu555 commented 7 years ago

Wow! Thank you for really fast and good job! When I open folder first time it's still long time, but pagination works great (so time is shorter than before:)) But what can I see, there are no folders in ListView in right area, I can see only images.

benjaminhirsch commented 7 years ago

Hi @zbychu555, sorry for the late response. Do you still have the problem? Unfortunatley I'm not able to reproduce this Problem. 😕

benjaminhirsch commented 6 years ago

I've found the problem, it's related to the processed folder and the limit of 5.000 files per call to the storage API. I will investigate the problem.

benjaminhirsch commented 6 years ago

Version 0.3.3 partially fixes the problem I guess - please have a look at the patch notes for detailed Informationen regarding this issue. :-)

zbychu555 commented 6 years ago

Hi, sorry for really long silence from my side... I can see 'folders in folder' but not main folders which are in my root. But it's not big issue in my opinion :)

benjaminhirsch commented 6 years ago

Just to be clear about that. With you can't see folders inside your root folder, means you can't see the folders "Documents", "Images" and "user_upload" like in the example?

image

zbychu555 commented 6 years ago

Yes, I cannot see this folders.

azure
benjaminhirsch commented 6 years ago

Since which version do you use the extension? I'm asking, because in one of the first versions, there was a change which had impact on the file/folderidentifier hash.

zbychu555 commented 6 years ago

As I remember it was my pull request which changed hashes:) I think it's no a problem for me, because I started using Azure after this change. I checked and new folders also doesn't work.

benjaminhirsch commented 6 years ago

Hmmm :confused: ... I'm sorry, for the moment, I've no idea.

zbychu555 commented 6 years ago

Thanks a lot for your work on this issue. I'm so happy that pagination works - missing 'root' folders in my installation don't be a big issue in this case :)