Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2279

phpBB Custom Coding • Re: Removing orphaned atachments not in DB.

$
0
0
Plus there is no index on the physical_filename column so that's going to require a full table scan for each query.
I had considered getting the user ID from the physical_filename.
I would load all the files into an array with scandir()
I had considered what you suggested but based on what I read readdir should be faster.

I any event already done. I just put the local output of the 400+/- files into an array and ran it on live server.

Statistics: Posted by thecoalman — Tue Sep 17, 2024 11:23 pm



Viewing all articles
Browse latest Browse all 2279

Trending Articles