I am trying to import around 6000 contacts on s60 device.
I am using CContactDatabase::ImportContactsL funciotn with CContactChangeNotifier on it to be informed when contact is succesfully imported and database is ready to import next one.
I have tested this on devices with symbian 9.1, 9.2, 9.3, 9.4 and emulator.
It is working perfectly except symbian 9.4.
For example ImportContactsL on N97 device after 4000 contacts imported starts to leave with KErrNotReady exception.
I am trying to wait few or more seconds, which is enough for other symbian 9.1, 9.2, 9.3 and then import next contact but
sooner or later (around 4800 imported contacts) ImportContactsL is leaving all the time with KErrNotReady.
Moreover during import system application Contacs popped out with NotEnoughMemory please close some applications.
It looks like that Contacdatabase cannot handle correctly co much contacts during import.
What should I do to improve its performance. (I am using CompressRequired() and CompactL() but it is not the solution).