$totalrows = 10;
$sql = "SELECT
posts.Tags as tags,
posts.OwnerUserId as postsid,
posts.Id as postid,
posts.Body as body,
posts.Title as title,
users.Id as userid,
users.DisplayName as usersname
FROM posts
JOIN users ON posts.OwnerUserId = users.Id
WHERE posts.Title != '' order by rand() asc limit " . $totalrows;
$r = mysql_query($sql) or die(mysql_error());
PHPを高速化する方法はありますか?randによる順序の問合せで問題が発生しました
あなたはこの正確な質問を先にお願いしました。 http://stackoverflow.com/questions/4644600/order-by-rand-gets-trouble-for-large-posts – BoltClock