Skip to content

Commit b7c0348

Browse files
authored
Update README.md
1 parent 96a464c commit b7c0348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Database updates for bbPress
44
55
## Why database need to be changed?
66

7-
The new schema is proposed to use additional table as a replacement for the use of wp_postmeta for storing additional data used by forums, topics and replies. Database queries that need to join with the data in the wp_postmeta are very slow because join in the SQL is made on the meta_value column (type is LONGTEXT). This column can't be indexed, and it requires casting to get proper data format, and that makes SQL queries execution very slow.
7+
The new schema is proposed to use additional table as a replacement for the use of wp_postmeta for storing additional data used by forums, topics and replies. Database queries that need to join with the data in the wp_postmeta are very slow because join in the SQL is made on the meta_value column (type is LONGTEXT). This column can't be indexed, and it requires casting to get proper data format, and that can make SQL queries execution very slow.
88

99
The speed of bbPress queries that depend on the wp_postmeta joining is not critical issue for small forums, but with larger number of topics and replies, it can considerably slowdown the website for more complex queries.
1010

1111
Without these changes, bbPress can't scale well to large forums that run complex queries or have features that need better filtering, search and other things that use complex queries.
1212

1313
## Which new tables are needed?
1414

15-
This proposition currently includes 3 tables for forums, topics and replies, 2 tables for topics and forums subscriptions and 1 table for favorite topics.
15+
This proposition currently includes 3 tables for forums, topics and replies, 2 tables for topics and forums subscriptions, 1 table for favorite topics, 1 table for topics engangements and 1 table for users.
1616

1717
Tables for forums, topics and replies are made to replicate data saved into wp_postmeta table. Each column in these tables corresponds to the meta field stored in the wp_postmeta table. All ID based columns are indexed to make required joins very fast. Proper data types are used for all columns.
1818

0 commit comments

Comments
 (0)