zyx Posted December 9, 2018 Posted December 9, 2018 (edited) Just some quick feedback - I have a site with many 1000's of images, and yet if I add the 'random' gallery feed sidebar block, it will pull from the same 20 or so images always (for all users, despite clearing cache etc). Settings are definitely correct to allow 'any' image regardless of rating/author. There would literally be tens of thousands of possibilities with this criteria, so it's too coincidental for every user to 'randomly' get the same tiny sample every time. And they then never change. (For example, one time you'll get one set of 10, the next time the other set of 10. then repeat). Is this a known bug, or a setting I'm missing to ensure random truly is completely random from the entire available images? Thanks. Edited December 9, 2018 by theipsguy
AndyF Posted December 10, 2018 Posted December 10, 2018 (edited) I'd suggest a ticket/bug too, if you are sure the criteria are correctly set. Although unrelated: I was actually having a discussion (on anther site) about something similar a few days ago , generally computers are not *that* good at creating real random numbers, there's nearly always some pseudo randomness even if the seed is reset often but generally it should not really be easily detectable without some kind of detailed pattern search. I'll spare you my findings on this as its off topic and a bit boring too! Back on topic, I had a thought if you're using some kind of external caching that *might* possibly (just) be causing it but that seems unlikely somehow. Ticket is the best option here I think as indicated above. 🙂 Edited December 10, 2018 by AndyF
bfarber Posted December 10, 2018 Posted December 10, 2018 Are you accounting for block caching (widgets are cached for a period of time and so the same image would be shown to everyone while the block is cached)? This is not specific to the "random gallery image" block but really to any block. AndyF 1
zyx Posted December 10, 2018 Author Posted December 10, 2018 7 hours ago, bfarber said: Are you accounting for block caching (widgets are cached for a period of time and so the same image would be shown to everyone while the block is cached)? This is not specific to the "random gallery image" block but really to any block. This was well over a week of everyone getting the same set of images. I then took the block down as people were commenting that it's not very random if it's the same image constantly. There's no external caching being used, so is there a setting I'm missing that could cause such an extended amount of block caching, or does it indeed just seem like a bug? Thanks to everyone for their help.
bfarber Posted December 11, 2018 Posted December 11, 2018 Blocks will cache, but we're talking somewhere around 30-300 seconds typically, not a week. My best recommendation is to submit a ticket.
GoAncestry Posted October 15, 2019 Posted October 15, 2019 did this ever get fixed? I seem to have the same outcome. Seems random selects a time stamp as the initial image, then just presents the next 4x images ( I am set for 5x images) from that timestamp either ascending or descending. Nothing really random from a user perspective.
zyx Posted January 19, 2021 Author Posted January 19, 2021 (edited) Sadly still not fixed. @bfarber It will initially seem to be working, as it will show 4-5 different groups of 'random' gallery items. (So for the first 4 or 5 times of seeing the block, it works great). But after about 4 or 5 times, it will simply cycle back to the original group of items it selected. So in a gallery of countless thousands of items, actually only about 20 items ever get shown. And no, I am certain it's not down to the filtering settings - in theory the block should be pulling from 3,000+ items based on the settings, but it's always the same 20 or so items it seems to 'randomly' select from. Have cleared cache etc and checked for obvious fixes, but this has been happening for years so we just stop using the block. Really dissapointing though. Edited January 19, 2021 by theipsguy
bosss Posted January 19, 2021 Posted January 19, 2021 Have same problem - only shows same image in sidebar widget - choosed random (1) from all albums but no effect! zyx 1
zyx Posted January 20, 2021 Author Posted January 20, 2021 Unfortunately since probably only a relatively small percent of people use the random image block, I imagine this will be another thing that just gets forgotten. But for us, it would be a very big improvement if this was resolved.
bfarber Posted January 20, 2021 Posted January 20, 2021 We have to do a pseudo-random ordering for sites with large galleries, because MySQL's "ORDER BY RAND()" is extremely expensive from a performance angle. That said, it is possible we can improve our pseudo-random selections a bit - I'll take a look. zyx 1
xdrox Posted January 22, 2021 Posted January 22, 2021 I still don't see the point of that new topic summary sidebar. It's not really useful to know who is the biggest spammer.
Nathan Explosion Posted January 22, 2021 Posted January 22, 2021 3 hours ago, xdrox said: I still don't see the point of that new topic summary sidebar Then turn it off, if you haven't already done so.
zyx Posted January 22, 2021 Author Posted January 22, 2021 On 1/20/2021 at 2:45 PM, bfarber said: We have to do a pseudo-random ordering for sites with large galleries, because MySQL's "ORDER BY RAND()" is extremely expensive from a performance angle. That said, it is possible we can improve our pseudo-random selections a bit - I'll take a look. Thank you very much! Right now it really is just the same very small selection of choices over and over again. Doesn't need to be genuinely random, just some way to not constantly cycle through the exact same images. bosss 1
bfarber Posted January 22, 2021 Posted January 22, 2021 5 hours ago, theipsguy said: Thank you very much! Right now it really is just the same very small selection of choices over and over again. Doesn't need to be genuinely random, just some way to not constantly cycle through the exact same images. I've been experimenting with some options that should help improve the behavior in an upcoming release. 👍 bradl, GlenP, zyx and 3 others 5 1
bradl Posted January 23, 2021 Posted January 23, 2021 Thank you. I was going crazy with this until I found this topic. zyx 1
kotaco Posted March 2, 2021 Posted March 2, 2021 (edited) On 1/22/2021 at 12:32 PM, bfarber said: I've been experimenting with some options that should help improve the behavior in an upcoming release. 👍 Awesome. I was just trying to figure out why my block that pulls a feed of randomized featured images from the gallery wasn't displaying random images, but the same ones over and over. Hoping this fix will resolve that for us! Edited March 2, 2021 by kotaco zyx 1
Recommended Posts