Skip to Content Skip to Menu

Community Builder / JMS Multisites / shared extension / FORCE INDEX

10 years 11 months ago #238121 by schultzITsolutions
Hello,
I am using CB 1.9.1 in a JMS Multisites "shared extension" environment (meaning CB users are shared across multiple sites). To achieve this, I had to create MySQL VIEWs for the CB database tables for each shared site. This is working well except one situation:

The #__comprofiler_members table uses "FORCE INDEX" clause (in script "comprofiler.class.php", several occurences ), which is not allowed in MySQL for VIEWs. When I comment out this MySQL clause, everything works as desired.

So my questions are:

1) what is the reason you implemented this clause for "cb connections", and is it "save" or what happens to Community Builder, if I comment this out?
2) Is there a chance you remove this clause from the SQL queries in one of the next versions?

Kind regards
Ruediger Schultz

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
10 years 11 months ago #238129 by beat
As those tables can be really huge, and the MySQL 4 optimizer didn't automatically use those indexes, we had to add those statements to have very fast accesses even with millions of connections.

We will be reviewing all CB queries in the next months as we raise minimum MySQL requirement.

In your case, you can remove those statements as long as you are happy with the performance and use a more recent MySQL engine, but for general case, as long as we support MySQL 4, we can't yet.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum