51 |
51 |
52 //insert to temp table first wo indexing and move data to main table as batch |
52 //insert to temp table first wo indexing and move data to main table as batch |
53 //actual batch size will vary and will be between min...max batch size values below |
53 //actual batch size will vary and will be between min...max batch size values below |
54 |
54 |
55 //minimum batch size |
55 //minimum batch size |
56 const TUint KMInBatchItems = 3; |
56 const TUint KMInBatchItems = 6; |
57 //maximum batch size |
57 //maximum batch size |
58 const TUint KMaxBatchItems = 60; |
58 const TUint KMaxBatchItems = 60; |
59 //Max allowed flush time |
59 //Max allowed flush time ms |
60 const TUint KMaxFlushDelay = 3000; // 3 sec |
60 const TUint KMaxFlushDelay = 3000; // 3 sec |
61 //Max allowed flush time on MTP/music collection refresh |
61 //Max allowed flush time on MTP/music collection refresh |
62 const TUint KMaxMTPFlushDelay = 15000; // 15 seconds |
62 const TUint KMaxMTPFlushDelay = 15000; // 15 seconds |
63 |
63 |
64 //how many items daemon will query at once from MDS |
64 //how many items daemon will query at once from MDS |
65 const TUint KMaxQueryItems = 100; |
65 const TUint KMaxQueryItems = 100; |
66 // max items for PH & AllItems query |
66 // max items for PH & AllItems query |
67 const TUint KMaxQueryItems2 = 100; |
67 const TUint KMaxQueryBatchSize = 100; |
68 |
68 |
69 // maximum number of active client side queue requests |
69 // maximum number of active client side queue requests |
70 const TUint KMaxClientRequests = 2; |
70 const TUint KMaxClientRequests = 2; |
71 |
71 |
72 #ifdef __RETRY_ON_SERVERCRASH |
72 #ifdef __RETRY_ON_SERVERCRASH |