Closed (fixed)
Project:
Xray Audit
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2025 at 19:37 UTC
Updated:
25 Jun 2026 at 09:30 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
antonio nunez commentedComment #4
antonio nunez commentedA new report has been created that detects duplicate files in the file_managed table and suggests actions to take. Now, the report lists the following information for each set of duplicate files:
Scenarios:
Comment #5
tunicAlso, I guess that process can be done directly using SQL. I mean writing a SQL query that returns what the values calculated in $main_fid and $unused_fids. Probably, this is not trivial, but if done will solve many performance problemas with sites that have huge number of files.
Comment #6
antonio nunez commentedOptimized data handling and split the logic for displaying recommendation messages.
Comment #7
antonio nunez commentedComment #8
antonio nunez commentedComment #9
tunicIt looks good to me, but I'll wait for @lpeidro review.
Thanks!
Comment #10
tunicComment #11
lpeidro commentedI change dev branch (2.x-dev)
Comment #12
lpeidro commentedWe improved the login process to enhance performance. Before this modification, a request was executed with a WHERE clause, which could cause performance issues on large sites. We moved some of the logic from PHP to SQL, using strategies such as GROUP BY and HAVING.
Comment #13
lpeidro commentedIt works as expected. I merge the branch.
Thank you Antonio.
Comment #15
eduardo morales alberti