Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 07, 2016 @ 15:14
    Jeroen Breuer
    0

    Syncing from database... takes a long time

    Hello,

    I've got a website on Umbraco 7.3.4. Regularly a page refresh takes a few seconds. Every time that happens I see the following in the log:

    2016-01-07 15:43:20,689 [P5392/D15/T58] DEBUG Umbraco.Core.Sync.DatabaseServerMessenger - Syncing from database...
    2016-01-07 15:43:22,777 [P5392/D15/T58] DEBUG Umbraco.Core.Sync.DatabaseServerMessenger - Complete (took 2088ms)
    
    2016-01-07 15:46:31,619 [P5392/D15/T120] DEBUG Umbraco.Core.Sync.DatabaseServerMessenger - Syncing from database...
    2016-01-07 15:46:33,349 [P5392/D15/T120] DEBUG Umbraco.Core.Sync.DatabaseServerMessenger - Complete (took 1730ms)
    

    It seems related to the umbracoCacheInstruction table, but I don't know what that's doing. The database is in Azure and we're working with multiple devs on the same db. So it probably thinks it's load balanced. But even if only 1 dev is working this happens.

    Can we do something about this?

    Jeroen

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Jan 07, 2016 @ 15:35
    Shannon Deminick
    100

    Do you have tons of instructions in that table ? If you have multiple devs working on the same db, then you are in fact load balancing. If these devs are doing stuff - like saving/creating/updating/etc... then it will add instructions to the table... these instructions need to be processed on each server that didn't create them.

    Instructions are cache refreshing instructions - these will update/clear/create caches including xml caches and examine indexes.

    So i assume that is why you are seeing this occur... because you have multiple devs doing multiple admin things.

    ... I hope you are not doing this on live because that is not supported.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 07, 2016 @ 15:55
    Jeroen Breuer
    0

    Hi Shannon,

    There currently are 116 rows in the table. And yes we have multiple devs do multiple admin things. This is only on our dev setup and not live.

    Could I just delete the rows? Xml caches and examine indexes aren't that important on our dev setup. Could manully refresh those if I want.

    Jeroen

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Jan 07, 2016 @ 15:57
    Shannon Deminick
    0

    no you cannot just delete the rows, otherwise your instance will have to 'cold boot' which means it will rebuild all indexes and xml caches from the raw database.

    your instances will keep themselves up to date, it will store a lastsynced.txt in App_Data/DistCache

    If they are already up to date and it's taking a long time to sync, then maybe you have a super slow db connection ?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 07, 2016 @ 16:03
    Jeroen Breuer
    0

    Hmm well it is an Azure db. It should be pretty fast. Thanks for the update :-).

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Jan 07, 2016 @ 16:06
    Shannon Deminick
    0

    You can put your logging in Debug to see if it's doing something funky while it's doing its Syncing from database stuff. You can also see the instruction Id on your install that you are synced too.

    If your dev's are modifying / removing / updating doc types, etc... that would mean that your caches would basically have be totally rebuilt in some cases. 2 seconds doesn't seem like that long for those types of operations.

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Jan 07, 2016 @ 18:45
    Niels Hartvig
    0

    Depending on your SQL Azure plan, it can be shared thus throttled and cause "random" penalties.

Please Sign in or register to post replies

Write your reply to:

Draft