Skip to Content
avatar image
Former Member

Auto sync and sync at the same time

Hi, i´m developing an app with auto sync each 15 second, but sometimes, i need a forced sync, are there any problems if there are two sync active at the same time?

Thanks,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 03, 2008 at 05:19 PM

    I fill the syncbo bit a bit from backend... and when the syncbo have more than 3000rows, appear in i-partial and not continue... what could be the problem? The timeout?

    Thanks,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Victor,

      why do auto sync less then 1minute???? Calculate processing times an so on -if you sync every min - then you rsystem syncs always - not necessary in my understanimng.

      Better choice: sync by request: usually: uder want to know how many items are in stock? Then you create a SyncBO - sync up to backend - get reply down - display reply. This is ok for type S01 - takes just a few secs - autosync - well, I do not like it cuse of the issues you get with chnged data in the background, while display and change an item on the device at the same time,.....

      And: you have the items on the device cause you want to work offline - but then you sync every min the complete dataset. Calculate the load on the servers. You are running nealry everything in S01 - your backend will explode!!!!!!!!! Beside the technical problems you are dealing with: this is the most problematic issue in your case! The load on the backend in your architecture! Change the handling of BOs completeyl and thing again about your data design!!!!!!!

      Regards,

      Oliver

  • avatar image
    Former Member
    Apr 03, 2008 at 03:04 PM

    Hi Victor,

    What do you mean by Autosync..are you defining some parameters in mobileengine config file or using smartsync Api's.

    If you are defining the mobileengine parameters then it should not affect your foced sync.

    Thanks

    Regards

    Devendra Phate

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I´m using SyncBO type S01...

      My application is:

      - In orders

      - Out orders

      Ok, in the part of in or in the part of out, the operator read various orders (could be in the syncbo or no):

      - If the order is in syncbo --> no sync

      - If the order isn´t in syncbo --> sync

      Moreover, as the synchronization takes a long time, i do an auto sync... that´s way, the SyncBOs ar fill automatically in the backend by the operator boss.

      Regards,

      PD: the code for autosync:

      MobileEngine.Sync.TimedSyncActive=true

      MobileEngine.Sync.TimedSyncTimeInterval=15000

      MobileEngine.Security.SynchronizationPasswordHandlingOption=local

      MobileEngine.Sync.RepetitiveSyncEnabled=true

      MobileEngine.Sync.TimeBetweenRepetitiveSyncs=15000

      Edited by: Victor Capi on Apr 3, 2008 6:11 PM