ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Exp_relationships locking

February 08, 2011 12:34pm

Subscribe [5]
  • #1 / Feb 08, 2011 12:34pm

    jkdmedia

    8 posts

    Hi there,

    We have quite a big problem with the exp_relationships table. It can get up to 6gb some times and it is quite hard to manage.

    Moreover when we edit any article the table gets locked with the update to the relationship entry and the site basically goes down.

    Do you have any solution for this? Is there a way to prevent the DB cache to be stored on this table?

    We are not using Playa just the native EE relationships module.

    Thanks

  • #2 / Feb 08, 2011 4:46pm

    Sue Crocker

    26054 posts

    Hi, jkmedia.

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    the newest version of Playa now uses its own table, but that might not be the issue here. How many entries do you have?

  • #3 / Feb 08, 2011 5:20pm

    jkdmedia

    8 posts

    We are using EE 1.7.0 build 20101018.

    We are not using Playa and we have 184858 entries.

    Thanks

  • #4 / Feb 09, 2011 2:27am

    John Henry Donovan

    12339 posts

    jkdmedia,

    Can you give us an idea of how you are using relationships please?
    How many weblogs? Which use a relationship and how you are approaching it in your templates

    You can set EE to clear your cache every-time you create a new entry if that helps

  • #5 / Feb 09, 2011 11:46am

    jkdmedia

    8 posts

    We have around 15 weblogs and I am not really sure what do you mean by how are we approaching the relationships.

    Is there a way to disable the cache at all?

  • #6 / Feb 09, 2011 12:13pm

    jkdmedia

    8 posts

    Reviewing the DB log the problem seems to be this query “UPDATE exp_relationships SET rel_data = ‘’,
    reverse_rel_data = ‘’”, which is the cache being cleared right?

    I am not sure if it’s best not to clear the cache at all or just not have a cache.

  • #7 / Feb 09, 2011 11:53pm

    Brandon Jones

    5500 posts

    Hi jkdmedia,

    Approximately how many entries with relationships do you have? Go ahead and try clearing all caches during a low traffic period and see if there’s any change.

  • #8 / Feb 10, 2011 9:40am

    jkdmedia

    8 posts

    Cleaning the cache is exactly what locks the site. If I do wait, while my site is down, until the cache is completely clean it is back up to a huge size the following day.

    Is there any way to disable that cache?

  • #9 / Feb 10, 2011 3:30pm

    Ingmar

    29245 posts

    I am not aware of a way to disable this caching. This looks like a datbase (optimization) issue. Have you asked your db administrator for assistance? There might be a few tweaks that can help.

  • #10 / Feb 10, 2011 3:41pm

    jkdmedia

    8 posts

    Yes, I have no one seems to have an answer for this. Do you know any way to optimize this table?

    Thanks

  • #11 / Feb 11, 2011 4:39am

    John Henry Donovan

    12339 posts

    jkdmedia,

    Not that table specifically but for overall performance of your db there are some excellent tips in this document

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases