locked
Limitation to the amount of data which can be synced? RRS feed

  • Question

  • I wonder if i might have came across some kind of a limitation to the amount of data which can be synced at once:

    I have created a basic list service for key parts of my scenario and adapted the silverlight example client to it (browser's silverlight http traffic is more easy to debug than the wp7 example). Everythin works as expected - until the amount of data to be synched is more than approximatly 1700000 Bytes. Then the client does not display any results and the service sends the whole set of data again on every request (opposite to the differential data sets). No exceptions are thrown, no indication of a problem.

    Wednesday, July 28, 2010 12:27 PM

Answers

  • Default SL isolated storage quota is 1MB. Can you try increasing the size to something bigger and then try this again? We have a workitem to report an error when the underlying isolated store runs out of space.


    Maheshwar Jayaraman - http://blogs.msdn.com/mahjayar
    • Marked as answer by M.Bi Thursday, July 29, 2010 8:24 AM
    Wednesday, July 28, 2010 5:48 PM

All replies

  • Default SL isolated storage quota is 1MB. Can you try increasing the size to something bigger and then try this again? We have a workitem to report an error when the underlying isolated store runs out of space.


    Maheshwar Jayaraman - http://blogs.msdn.com/mahjayar
    • Marked as answer by M.Bi Thursday, July 29, 2010 8:24 AM
    Wednesday, July 28, 2010 5:48 PM
  • Again, thank you very much! Raising the Silverlight Isolated Storage Quota let me sync all of my data successfully.

    Just for the records, this is the helper method i added to the example client:

        private void EnsureStorageSpace(long expectedSize)
        {
          using (IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication())
          {
            if (storage.AvailableFreeSpace - expectedSize < 0)
            {
              storage.IncreaseQuotaTo(storage.Quota - storage.AvailableFreeSpace + expectedSize);
            }
          }
        }
    
    

     

    Thursday, July 29, 2010 8:26 AM