GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MechBunny main page video order (https://gfy.com/showthread.php?t=1069185)

Matyko 05-24-2012 04:07 AM

MechBunny main page video order
 
Hi Fellow MechBunny users,

I am not really happy with the default method of listing the videos, and decided to go for random listing on main page. Prezzz helped me in finding a way to do this: ORDER BY RAND ... So I asked MojoHost to apply this on all my tubes, and they warned me that this can cause serious performance issues and I should find out something else besides this.

This made me reconsider what algo to use on the main page..

Is there anybody out there using non-default settings for this?

Thanks & Peace,

k0nr4d 05-24-2012 04:13 AM

ORDER BY RAND() creates a temporary table in mysql so yes that would cause problems.

Most people if they don't like the sort order they change it to show newest first.

Matyko 05-24-2012 04:22 AM

Konrad, that would cause problems on tubes with high traffic / tons of videos or on small niche tubes too?

k0nr4d 05-24-2012 04:35 AM

Sorting by newest won't cause any problems. Sorting by RAND is more likely to cause problems on a bunch of small sites vs one big site since the homepage would be getting hit less frequently across a network and is likely to recache more often.

Matyko 05-24-2012 04:49 AM

what if i do a cron job to randomize the date of the videos in db every x hours?

seeme 05-24-2012 07:21 AM

Add your own time field and order by that. Then add a bump button that updates that field to NOW(). That way you can just bump any video you want to front and is ordered this way...

Matyko 05-24-2012 07:28 AM

Quote:

Originally Posted by addyourcontent (Post 18962942)
Add your own time field and order by that. Then add a bump button that updates that field to NOW(). That way you can just bump any video you want to front and is ordered this way...

Awesome idea, Thank You! :thumbsup :2 cents: :pimp

Screwed Up 05-24-2012 08:35 AM

Quote:

Originally Posted by addyourcontent (Post 18962942)
Add your own time field and order by that. Then add a bump button that updates that field to NOW(). That way you can just bump any video you want to front and is ordered this way...

Sweet tip.

Matyko 05-25-2012 01:05 AM

OK so the result is this: I do use 'ORDER BY RAND' but modded the site's cache so the pages are now cached for 300 seconds, this way I think there's no chance of problems.

This is not the very best solution, but does the job I want for next few months.


All times are GMT -7. The time now is 05:12 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123