![]() |
|
Performance improvement on Random Image - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Performance improvement on Random Image (/thread-3025.html) |
Performance improvement on Random Image - fatman - 2008-06-02 For further speed up the Random image, I modified the password protected album by SQL instead of check the album tree node one by one. I have already created the ticket, but want to discuss more in forum. The time of getting 9 random images on a 4500 images and 300 albums gallery. some concern. [b]2[/b] I am not sure did the php-mysql library got limitation on query string buffer, since the length of SQL where clause maybe longer and longer if the number of albums growth. Although it can use the sub-query for filtering, I feel mysql is not doing very well on handing sub-query after a test of speed. So, I gave up to use subquery. [b]3[/b] It use a outer join for getting a tree. The join process may be slower when the level of tree growth. Performance improvement on Random Image - invarbrass - 2008-06-06 seems interesting. can you share your code? Performance improvement on Random Image - acrylian - 2008-06-06 It's in the svn/nightly. |