![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
PsyHead
Industry Role:
Join Date: Aug 2005
Location: Hungary
Posts: 8,666
|
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,
__________________
-=- Register with our ref link and we help you with the setup! -=-
AdSpyglass.com - Double your profit from brokers |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
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.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
PsyHead
Industry Role:
Join Date: Aug 2005
Location: Hungary
Posts: 8,666
|
Konrad, that would cause problems on tubes with high traffic / tons of videos or on small niche tubes too?
__________________
-=- Register with our ref link and we help you with the setup! -=-
AdSpyglass.com - Double your profit from brokers |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
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.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
PsyHead
Industry Role:
Join Date: Aug 2005
Location: Hungary
Posts: 8,666
|
what if i do a cron job to randomize the date of the videos in db every x hours?
__________________
-=- Register with our ref link and we help you with the setup! -=-
AdSpyglass.com - Double your profit from brokers |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Stephen
Industry Role:
Join Date: Jun 2011
Location: Europe
Posts: 840
|
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...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
PsyHead
Industry Role:
Join Date: Aug 2005
Location: Hungary
Posts: 8,666
|
Quote:
![]() ![]() ![]()
__________________
-=- Register with our ref link and we help you with the setup! -=-
AdSpyglass.com - Double your profit from brokers |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: African Planet
Posts: 1,118
|
Sweet tip.
__________________
Promote these REAL amateur sites with Exclusive content:
African Casting | Real Africans | Latina Fuck Tour | African Lesbians African Bucks Contact: support @ africanbucks.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
PsyHead
Industry Role:
Join Date: Aug 2005
Location: Hungary
Posts: 8,666
|
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.
__________________
-=- Register with our ref link and we help you with the setup! -=-
AdSpyglass.com - Double your profit from brokers |
![]() |
![]() ![]() ![]() ![]() ![]() |