Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

for Rafeal: Intent of the jforum_posts_text table?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most likely it was done that way because PhPBB did it that way (AFAIK, jForum's initial goal was to be a Java based PhPBB replacement/clone ).

A couple of reasons I can think of doing it this way are:

1) To eventually allow for "cross postings" of the same message to multiple forums. NNTP allows this and BB code often takes a lot of tips from this older cousin.

2) This is a pretty standard DB practice when you are mapping tables to in-memory objects. Having "load on demand" object properties can be complex and problematic. It's easier, takes less memory, and faster to have a lighter weight "summary object" that maps to all the fields in one table and a "heavier" related details object.


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Rafael,

Can you please tell what the intent was to create a separate table for a post's text (jforum_posts_text). The table seems to be a one-to-one mapping with jforum_posts, so it doesnt fall under the rules of database normalization. Does it have anything to do with Search?

Thnx in Advance.

/Pankaj
[originally posted on jforum.net by pankajvermani]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, monroe is completely right about item "2". Having the message text in the same table of all other information uses a lot more of system resources than splitting in two different tables. Also, sometimes a bit of "denormalization" it's good, in order to improve performance.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Those are the largest trousers in the world! Especially when next to this ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic