|
2010-11-17
, 10:23
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#2
|
|
2011-05-22
, 00:06
|
Posts: 53 |
Thanked: 20 times |
Joined on Feb 2010
|
#3
|
|
2011-06-10
, 18:33
|
Posts: 62 |
Thanked: 73 times |
Joined on Jun 2010
|
#4
|
|
2011-06-10
, 21:32
|
Posts: 53 |
Thanked: 18 times |
Joined on Sep 2009
@ UK
|
#5
|
I just wanted to say a big thank you to miniME - I had similar problems / symptoms - the Calendar Process would use 80% CPU for long periods - and my N900 would become unusable - flashing didn't solve the problem either.
Eventually, with the help of this thread, I used SQLite to view the calendardb file. It had grown to 395 MB!
I copied the calendardb file to /home/user/MyDocs (took a long time). I then connected my N900 to my computer via USB - copied the file to my computer - and viewed the contents with the SQLite Database Browser (http://sqlitebrowser.sourceforge.net).
I discovered that just 3 ComponentId's in the XProperties Table took up 10,485,760 rows! I deleted all of these.
I then saved and compacted the database (calendardb) - copied it back to MyDocs on the N900 - and then copied it back to /home/user/.calendar/calendardb (after I had made a copy of the original calendardb).
The Calendar, and my N900, seem to be working much better now!
I think the problem came about because I had previously migrated recurring Calendar Tasks from my old Nokia N78.
i run into a problem that my calendar behaved strange - it loaded slow and showed me the view of yesterday. also calendar widgets froze the hildon desktop.
anyway i discovered that the /home/user/.calendar/calendardb was far too big - 120MB around.
i tried to sync it to pc or other phone or syncml services - n900 took for ever to sync and nothing was synced.
i also tried to export calendar with the calendar's own export function. it did not work.
so i tried to extract calendar info from the db file and discovered it is a sqlite3 db-file.
this made things easy - even possible on device (i used for performance reasons the pc):
- sqlite3 calendardb .dump >calendardb.dump
with that dumped sql file (now 250mb large) i checked that it repeated one sql command far too often:
"INSERT INTO "XProperties" VALUES(180,'X-EPOCAGENDAENTRYTYPE','TODO');"
i deleted the block of repeated sql commands and let only one command stay.
i created a sqlite3 db file :
- cat calendardb.fixed |sqlite3 calendardb (i have now 280k file)
- sqlite3 calendardb .reindex
this file i put back to /home/user/.calendar and my calendar and widgets are usable again.
did not test the sync yet - but it will work i guess.
ciao and good luck
Last edited by -miniME-; 2010-11-17 at 18:06.