Go to file
Dries Buytaert 8a7690af57 Wheep! Wheep! Major performance optimization for index.php: we reduced the
number of SQL on the mainpage with factor 10 and shortened the code with 4
lines.  There is only *one* optimized SQL query left, being:

$result = db_query("SELECT stories.*, COUNT(comments.sid) AS comments FROM
stories LEFT JOIN comments ON stories.sid = comments.sid WHERE
stories.status = 1 AND stories.time <= $date GROUP BY stories.sid ORDER BY
stories.sid DESC LIMIT $number");

 Note: we use a LEFT JOIN to retrieve the number of comments associated
       with each story.  By retrieving this data now, we elimate a *lot*
       of individual queries that would otherwise be required inside the
       while-loop.  If there is no matching record for the right table in
       the ON-part of the LEFT JOIN, a row with all columns set to NULL
       is used for the right table.  This is required, as not every story
       has a counterpart in the comments table (at a given time).
2000-06-21 11:03:54 +00:00
themes Changed my theme so you could vote submissions. 2000-06-13 13:55:21 +00:00
.htaccess * Enhancement: protect the themes/-directory (and subdirectory) from 2000-06-05 16:10:47 +00:00
Makefile Imported sources 2000-05-18 19:52:00 +00:00
account.php Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
admin-new.php * Moved ban.php to admin-new.php: this will feature the new admin pages 2000-06-16 16:26:27 +00:00
admin.inc * admin.inc will include all admin related help-functions including the 2000-06-10 19:10:51 +00:00
admin.php Imported sources 2000-05-18 19:52:00 +00:00
article.php Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
authentication.inc Imported sources 2000-05-18 19:52:00 +00:00
backend.class.php * Replaced the RDF support (rdf.php) with a newer version (backend.php). 2000-05-25 20:35:18 +00:00
backend.php * Replaced the RDF support (rdf.php) with a newer version (backend.php). 2000-05-25 20:35:18 +00:00
ban.inc Updates: 2000-06-11 13:26:51 +00:00
calendar.class.php * small changes to make it look better (?). 2000-06-18 10:23:12 +00:00
comments.php Fixed some old cookiedecode() remainders. 2000-06-03 09:38:41 +00:00
config.inc Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
database.inc Updates: 2000-06-11 13:28:26 +00:00
error.php * Added the foundations to create customized error pages. 2000-05-28 09:23:56 +00:00
faq.php * Boxed the FAQ (--> looks better now) and made various changes to the FAQ 2000-06-17 13:25:58 +00:00
functions.inc Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
index.php Wheep! Wheep! Major performance optimization for index.php: we reduced the 2000-06-21 11:03:54 +00:00
mysql.tables * Implemented ban-capabilities, a first step towards an admin-friendly user 2000-06-10 18:58:41 +00:00
poll.php Imported sources 2000-05-18 19:52:00 +00:00
queue.php Imported sources 2000-05-18 19:52:00 +00:00
refer.php Imported sources 2000-05-18 19:52:00 +00:00
reset.php ------------------------------- 2000-05-26 07:24:29 +00:00
search.php Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
submission.inc * Small bugfix. ;-) 2000-06-20 09:24:10 +00:00
submission.php Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
submit.php Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
theme.inc IMPORTANT PATCH: 2000-06-05 16:21:47 +00:00
user.class.php Here we go again with a rather large commit: 2000-06-20 07:33:17 +00:00
webboard.php Hopefully this will not break anything *prays* 2000-06-02 18:36:14 +00:00