Imageboard Software Question (11)

1 Name: Anonymous : 2006-07-22 05:17 ID:6jejakDb [Del]

I know that most, if not every image board script creates pages, each usually with about 10 threads each. Now, what I am wondering is how these different scripts generally handle pages. Is every one different? Or do they all just about make 100 database queries and create new static pages? And, if the latter is true, is 100 queries every time someone updates a board quite a bit, or does it just seem to be more taxing than it really is?

2 Post deleted by user.

3 Name: Albright!LC/IWhc3yc : 2006-07-22 10:13 ID:n9UAPBF8 [Del]

Thorn solves this problem by not actually generating pages until they're requested.

As for other scripts, keep in mind that, on most image boards (4chan's more active boards being the exception), posting is actually quite rare, happening maybe ten to thirty times a day or less. So yes, it's a massive call to make all at once, and definitely a dumb brute-force solution to the problem (I think Thorn's method is better, but of course I pretty much have to), but it doesn't need to happen very often.

4 Name: Anonymous : 2006-07-22 13:24 ID:hnP46L1z [Del]

Needs to say that all pages are generated from a single SQL query: script just pulls whole table.

5 Name: !WAHa.06x36 : 2006-07-22 15:22 ID:iY/+3PIr [Del]

>>1

As >>4 says, Wakaba pulls the whole table and builds all pages from that. There's some trickery to get the posts in the right order without having to do any subqueries, or sorting by hand. I forget what the original Futaba script does, but I know some versions of Futallaby have done a shitload of queries to build the page.

6 Name: Anonymous : 2006-07-22 17:33 ID:6jejakDb [Del]

>>4
Now, since 4chan is the exception to this, does anyone know how 4chan copes with this? Surely they don't make 100 queries every time someone posts on /b/.

7 Name: Anonymous : 2006-07-23 08:14 ID:Heaven [Del]

>>6 I bet they used to!

Someone's refined the code since them, I'm sure.

8 Name: Albright!LC/IWhc3yc : 2006-07-24 02:25 ID:Heaven [Del]

It would be nice if 4chan would release their codeā€¦

9 Name: Mr VacBob!JqK7T7zan. : 2006-07-24 13:45 ID:OkuIOryu [Del]

It does a SELECT * and then sorts in PHP.

10 Name: EleoChan!EhVtXXdTd6 : 2006-07-24 18:32 ID:Heaven [Del]

Is 4Chan's code even ground-up or is it just a mod of futallaby or something?

11 Name: Mr VacBob!JqK7T7zan. : 2006-07-25 10:08 ID:OkuIOryu [Del]

Mod of futallaby. I don't think it even works outside where it's installed these days.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: