differences between fulltext phpbb vs fulltext mysql?

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
LucidParody
Registered User
Posts: 32
Joined: Sun Jun 22, 2003 1:01 am

differences between fulltext phpbb vs fulltext mysql?

Post by LucidParody »

What's the difference? Is one faster then the other?

User avatar
the_dan
Registered User
Posts: 700
Joined: Thu Apr 01, 2004 7:36 pm

Re: differences between fulltext phpbb vs fulltext mysql?

Post by the_dan »

The phpBB search engine uses a word index built up when posts are made. This requires more queries, processing time, and storage space, but works on older versions of MySQL, and on other DMBS'.

The MySQL fulltext engine creates fulltext indexes on certain database fields, which requires extra storage space, but lessens the complexity of the posting system, and is probably quicker and more efficient. It has the major disadvantage that it stops working as soon as you move off MySQL.

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: differences between fulltext phpbb vs fulltext mysql?

Post by dhn »

the_dan wrote: It has the major disadvantage that it stops working as soon as you move off MySQL.
In that case it is just a matter of rebuilding the index.

BTW, if there are a few people around that are interested in helping out, new search "plugins" for using the built-in indexing of other database system could be available soon.
Image

LucidParody
Registered User
Posts: 32
Joined: Sun Jun 22, 2003 1:01 am

Re: differences between fulltext phpbb vs fulltext mysql?

Post by LucidParody »

the_dan wrote: The phpBB search engine uses a word index built up when posts are made. This requires more queries, processing time, and storage space, but works on older versions of MySQL, and on other DMBS'.

The MySQL fulltext engine creates fulltext indexes on certain database fields, which requires extra storage space, but lessens the complexity of the posting system, and is probably quicker and more efficient. It has the major disadvantage that it stops working as soon as you move off MySQL.
So assuming you were planning to stick with mySQL, the latter fulltext search would be the better option?

User avatar
the_dan
Registered User
Posts: 700
Joined: Thu Apr 01, 2004 7:36 pm

Re: differences between fulltext phpbb vs fulltext mysql?

Post by the_dan »

I would think so.

R45
Registered User
Posts: 236
Joined: Tue Nov 27, 2001 10:42 pm

Re: differences between fulltext phpbb vs fulltext mysql?

Post by R45 »

It depends on the size of your board. If you have a very large board, you might be inclined to use phpbb fulltext and scale down the system, as the mysql fulltext doesn't scale well.

I would be willing to write a tsearch2 plugin (PostgreSQL's fulltext column type) if the dev team is interested.

LucidParody
Registered User
Posts: 32
Joined: Sun Jun 22, 2003 1:01 am

Re: differences between fulltext phpbb vs fulltext mysql?

Post by LucidParody »

R45 wrote: It depends on the size of your board. If you have a very large board, you might be inclined to use phpbb fulltext and scale down the system, as the mysql fulltext doesn't scale well.

I would be willing to write a tsearch2 plugin (PostgreSQL's fulltext column type) if the dev team is interested.
Define large?

R45
Registered User
Posts: 236
Joined: Tue Nov 27, 2001 10:42 pm

Re: differences between fulltext phpbb vs fulltext mysql?

Post by R45 »

Large is variable, depending on the size of your posts. For example, a forum with 2 million posts but mostly 1 line chat styled contents is much less stressful than 50,000 paragraph full posts. Maybe based on a filesize, I'd say a posts table near 1GB and beyond may start to hit performance problems with MySQL's fulltext.

LucidParody
Registered User
Posts: 32
Joined: Sun Jun 22, 2003 1:01 am

Re: differences between fulltext phpbb vs fulltext mysql?

Post by LucidParody »

R45 wrote: Large is variable, depending on the size of your posts. For example, a forum with 2 million posts but mostly 1 line chat styled contents is much less stressful than 50,000 paragraph full posts. Maybe based on a filesize, I'd say a posts table near 1GB and beyond may start to hit performance problems with MySQL's fulltext.
Oh nice. I'm only at about 120mb so I doubt I will have that problem. I figure at about 500mb, I'll start pruning posts anyway [out of general community/chit-chat first ;)].

User avatar
naderman
Consultant
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Berlin, Germany
Contact:

Re: differences between fulltext phpbb vs fulltext mysql?

Post by naderman »

R45 wrote: I would be willing to write a tsearch2 plugin (PostgreSQL's fulltext column type) if the dev team is interested.
You're welcome to create a new search plugin, and we hope to see a lot more once phpBB3 is released. Hopefully a lot of users will profit from the improvements such a database specific search plugin can achieve. :)

Post Reply