[Sputnik-list] Forum implementation

pierre pracht pierre.pracht at gmail.com
Thu Mar 6 08:35:40 GMT+2 2008


Le 6 mars 08 à 10:53, Jim Whitehead II a écrit :

>>>>> /forums/general/8823 - A topic in the forum "general"
>>>>> /forums/general/8823/1 - A reply to the topic 8823 in forum
>>>>> "general"
>>>>
>>>> In the short term, you can use a hash of the title/content  
>>>> instead of
>>>> a sequential number.  But I agree that in the long term it would be
>>>> good to be able to do what you are suggesting.
>>
>> Or simply generate key from post title :
>> forum presentation : "My first post" ->
>> /forums/presentation/my_first_post
>> And warm user if topic title have been previously used.
>> (a side effect, it would be seo friendly)
>
> Not practical in this case.  If the subject of a post changes (as it
> frequently does) then the URL would have to change.  This gets all
> sort of nasty really quickly.

Clone old nodes (including posts).
Lock old nodes and setup a redirection.
Later or never delete old nodes.
This is ugly but you would keep resource oriented.

>> When a user start a topic, it didn't create the topic. It just make
>> the first post with a never used title.
>> /forums/presentation/my_first_post/--146node_id56--
>> If it didn't exist system can create a topic node for commodity, but
>> concurrent creation wouldn't be harmful as it would just create two
>> version.
>>
>> If topic node need to be edited (e.g. lock topic :) ), storage would
>> just make a new version who would take over previous.
>> For right management : a user can (implicitly) create a topic node if
>> It didn't exist previously.
>> A moderator can edit (create new version).
>>
>> A general think :
>> - Avoid locking
>> - Just guaranty writing of data
>> - Application must check version
>> Or you can use a database.
>
> This isn't restricted to what I'm talking about specifically.  This is
> a problem that core sputnik currently faces.  It needs a solution,
> hence why I've brought it up.

I know and I understand.
I was just warning you that you borrow application schemes of existing  
application (e.g. phpbb + mysql).

It can be done another way. It isn't identical. But it could work.

If you try to get generated id and read/write consistency : you  
get ... a database

- pierre


More information about the Sputnik-list mailing list