[TYPO3-core] FAL: Problems with huge number of files in folder

Frans Saris franssaris at gmail.com
Thu Mar 13 09:35:59 CET 2014


Hi Christian,

Not sure if only the file count is enough. As you also have to take of the
sorting.

Further doesn't the local filesystem provide a count function by default.

Doesn't the remote storage provide  tags or categories you can use to let
the driver create virtual folders?

Gr. Frans
Hi,


We're writing a FAL adapter that allows access to a media storage that
does not have any folders. We're listing all files in the root
folder, since there is no other way for us to do this.

Our problem is that the file list always fetches all files at once, and
applies the paging only afterwards[1].
The correct way in my eyes would be fetching the number of items in the
folder at first, then apply paging, then fetch only relevant files that
will be be displayed.

What do you think? Is that feasible?

We would need to add a getNumberOfFiles() method to Resource\Folder, as
well as the storages.

[1] http://forge.typo3.org/issues/56746

--
Regards/Mit freundlichen Grüßen
Christian Weiske

-= Geeking around in the name of science since 1982 =-

_______________________________________________
Before posting to this list, please have a look to the posting rules
on the following websites:

http://typo3.org/teams/core/core-mailinglist-rules/
http://typo3.org/development/bug-fixing/diff-and-patch/
_______________________________________________
TYPO3-team-core mailing list
TYPO3-team-core at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20140313/a48e8a98/attachment.htm>


More information about the TYPO3-team-core mailing list