TI-92Plus Section Open
Posted by Magnus on 28 November 2001, 15:23 GMT
Just a quick note - the TI-92Plus section has now reopened. Not surprisingly (we hope), we continue the work on the other sections. Update (Magnus): TI-73, TI-80 and TI-81 sections opened as well (small sections leads to fast screening)
|
|
|
The comments below are written by ticalc.org visitors. Their views are not necessarily those of ticalc.org, and ticalc.org takes no responsibility for their content.
|
|
Re: TI-92Plus Section Open
|
lord_nightrose
(Web Page)
|
On an unrelated note:
Magnus, I've been trying to figure out how to make a message board similar to this for my own site. Two questions:
1. Would I be correct in guessing that the database is structured in some sort of nested hierarchy, where each message is contained as a data object containing its topic, text, writer, and sub-messages? (I thought of this whilst in Choir today... I am such a geek.)
2. Any chance of me getting a copy of your code? :-)
|
|
30 November 2001, 08:31 GMT
|
|
|
|
|
Re: Re: TI-92Plus Section Open
|
Magnus Hagander
(Web Page)
|
1) Basic structure of the database (note, of course there are a lot more fields, but this is the simple stuff) in SQL CREATE statements:
CREATE TABLE articles(articleid int SERIAL PRIMARY KEY, subject varchar(128), body text, rootid int REFERENCES articles(articleid), iscomment int DEFAULT 1)
CREATE TABLE article_bind(parent int REFERENCES articles(articleid), child int REFERENCES articles(articleid))
The rootid and iscomment fields in the articles table are just shortcut fields to make queries faster (rootid == article id if the master article of the thread that the article in question is a part of - that way you can cut down to 1 query to generate a complete page). Their information can be derived from the other information, so it's definitly a step away from normalisation - but anything for speed, right? :-)
That's the base. We have some things like broken-out text bodies into a different table to make the article table smaller (and thus faster to search) etc, just for optimisation.
Each comment is an article which has iscomment set to trie, and it also has a corresponding row in article_bind which binds it to its parent id.
2) Not really, at least not now :) You probably couldn't do *all* that much with it anyway, since it's littered with calls into our internal libraries for session management. If you have any further questions on the topic, feel free to mail me, though.
|
|
2 December 2001, 17:25 GMT
|
|
1 2 3
You can change the number of comments per page in Account Preferences.
|