View Full Version : 5.12 showmembers not showing correct last photo(NOT A BUG)
July 11th, 2005, 01:49 PM
The showmembers page isn't showing the last photo of a user.
First row shows the the gallery of "Daphna".
According to this page the last photo was posted on 10.7.2005 12:45, showing a thumbnail of http://fotogalerie.herr-der-ringe-film.de/data/500/thumbs/14241DSC01308.JPG.
Viewing that photo directly will show you, that it has been published on 2.5.2005
Link to this photo is:
I think this is caused by the sql query that is used to build showmembers.php. It uses GROUP BY, which brings up a wrong image id, depending on the sort order used.
July 11th, 2005, 02:34 PM
Correct, we do not show the last photo and this is a known issue which has no solution at this time (this has been covered several times in the forums).
In order to use a single query to get the member listing we use the GROUP BY which does not allow us to sort the date for the last photo uploaded. However, prior to this an additional query for every user displayed was required - which meant alot of queries per page.
We do not have a solution as yet to do both a single query and get the last photo.
July 11th, 2005, 02:43 PM
If I understand the code correctly, you have all userids after the query has been performed. Couldn't you use a second query then using WHERE userid IN (userid1,userid2,userid3,userid4,...) to get the last photo for each user.
With grabbing the userid and bigimage fields from the database, you get all information needed to map the fotos to the correct user. This would only add one additional query per page which uses an existing index.
July 11th, 2005, 02:45 PM
That's an approach I hadn't considered; so will look into it as a possible quick solution.
July 13th, 2005, 10:47 PM
How is the possible quick solution for this one coming along? This is one that causes a LOT of flailing with our users... both from the aspect of complaints and "reported as a bug"... and from the aspect of user satisfaction. They really seem to like seeing their latest photo thumbnail up on the page. :p
August 27th, 2005, 10:40 PM
Is a fix for this being worked on? Even considered? Not updating the thumbnail of member galleries is a signficant dissatisfaction for our users.
September 3rd, 2005, 01:46 PM
Yes, any news on this would be appreciated. My users are really annoyed and it generates a lot of support requests.
September 16th, 2005, 05:13 PM
Sorry, but I must beg you about this one. Any news on this? Is this being worked on, can we expect a fix soon?
September 18th, 2005, 12:24 PM
Add my voice here. Hope we can get a better solution at this. Thanks!
September 18th, 2005, 07:40 PM
To have a column titled - Last Photo Upload with date under thumb - is not a bug??
In addition, stuck thumb showing for some members is not good representation of their pics ...
September 18th, 2005, 09:32 PM
It is not a bug as Michael explained why it is the way it is.
September 18th, 2005, 10:43 PM
As Michael says here (http://www.photopost.com/members/forum/showthread.php?t=114378) ... "It's a trade-off" ... ( which has the same irritable sensation of a bug bite ;) )
"It's an issue of efficency; in the prior version of PhotoPost we did the main query and then if you were viewing thumbnails a second query for each member being displayed to find the latest thumbnail. This means that the showmembers page with 30 members would result in 30 additional queries per page. Using the method, we save the 30 queries, but loose the last photo uploaded thumbnail. It's a trade-off.
MySQL does support sorting columns during the GROUPing of records, by grouping the records from the photos table, we save any processing of members who have no photos at all."
On a user perspective, this is a very big trade-off because it affects the front door to their gallery of pics.
Am I correct to presume that this was a trade-off for providing the Group by Member / Sort by Feature?
Or was the show last photo feature going to be removed anyway to improve performance?
I understand, Chuck, that you don't consider this a bug support issue, so would you be so would you be so kind as to move it to the Discussion or Suggestions Forum?
I get this creepy pestering feeling replying to a 'Not a Bug' Thread in the Bug Forum
September 19th, 2005, 04:53 AM
Well, I'm not in the position to say if it's a bug or not. What I can say is that in prior version the last uploaded photo has been showed in this column. That's why the column header says "last uploaded photo". So the expected behaviour is exactly that.
If your intention was to change the behaviour of the software, please just communicate that and rename the column heading to something like "random photo".
Considering the fact that this changed behaviour wasn't mentioned in the release information and reading Michael's post in this thread, I got the impression that he
classifies this as a bug (with status OPEN), but hasn't come up with a appropriate solution yet. That's why a suggested a possible solution that only adds one extra query.
So I'd really appreciate a reply from the lead developer that clarifies the situation so that everyone knows if that issue will be tackled or not.
September 19th, 2005, 07:15 AM
Michael did reply Astaran that is why the thread has been marked essentially resolved. There are two threads on this issue
MJM trade off,efficiency, speed whatever ;) Essentially he is saying that with the efficient code that he can not grab the last photo since you can't sort within a group by mysql statement. He decided not to run 30 additional queries per page and that is the trade off he is referring to. If it is decided it is in the best interest of the program to go in a direction to improve speed and it is suppose to be coded this way then it is not considered a bug.
September 19th, 2005, 08:16 AM
Ok, thx for the clarification.I'll come up with my own solution then. One additional query will be sufficient. There's no need to make 30 additional queries.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.