Re: [SOGo] Disable Lightning Cached mode

2011-12-15 Thread PERAUD Fabrice (DI)

Le 14/12/2011 17:17, PERAUD Fabrice (DI) a écrit :

Le 14/12/2011 16:21, Julian Robbins a écrit :

On 14/12/11 15:16, Alessio Fattorini wrote:

Il 14/12/2011 16:07, Alessio Fattorini ha scritto:

Hi people,
how can i disable cache mode for lightining?
If i have a calendar with thousands of events thunderbird takes a 
lot of

time for fetch all events and it freezes!
How can i disable this? Or can i cache only last events? (from 1 month
to now)


I see this bug, and it' my problem.
https://bugzilla.mozilla.org/show_bug.cgi?id=412914

I have imported from horde my events.
I have 5 calendars with 6.000 events for every calendar.
If i install Thunderbird + addon (1.3.9) Thunderbird is blocked for 
a long long time, it's unusable. Pc blocked with Cpu and Ram to 100% 
fixed


Yes, I've seen this frequently too ... But for me its only when bring 
down new calendars. Still it takes about 5 mins before Thunderbird is 
available again, after reading apaprox 1.5MB sqllite file which seems 
quite slow


I'm in 3.108 and if you edit preference calendar id.cache.enabled, 
you can define, for each calendar, if it is cached or not. But there's 
no possibility for windowed cache.

For older version (cf attachement), this value was forced.

regards
--
Fabrice Peraud
There is a problem on calendars with cache disabled. You can't create, 
modify or save an events. In the console, you get :
Erreur : uncaught exception: [Exception... Component returned failure 
code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]  
nsresult: 0x80004002 (NS_NOINTERFACE)  location: JS frame :: 
file:///home/fab/.thunderbird/n1nsqr9i.test/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/modules/calUtils.jsm 
- 
file:///home/fab/.thunderbird/n1nsqr9i.test/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calDavCalendar.js 
:: caldav_modifyItemOrUseCache :: line 711  data: no]

when you save an event.
If you reenable the cache, everything works again.

--
Fabrice Peraud
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Disable Lightning Cached mode

2011-12-14 Thread PERAUD Fabrice (DI)

Le 14/12/2011 16:21, Julian Robbins a écrit :

On 14/12/11 15:16, Alessio Fattorini wrote:

Il 14/12/2011 16:07, Alessio Fattorini ha scritto:

Hi people,
how can i disable cache mode for lightining?
If i have a calendar with thousands of events thunderbird takes a 
lot of

time for fetch all events and it freezes!
How can i disable this? Or can i cache only last events? (from 1 month
to now)


I see this bug, and it' my problem.
https://bugzilla.mozilla.org/show_bug.cgi?id=412914

I have imported from horde my events.
I have 5 calendars with 6.000 events for every calendar.
If i install Thunderbird + addon (1.3.9) Thunderbird is blocked for a 
long long time, it's unusable. Pc blocked with Cpu and Ram to 100% fixed


Yes, I've seen this frequently too ... But for me its only when bring 
down new calendars. Still it takes about 5 mins before Thunderbird is 
available again, after reading apaprox 1.5MB sqllite file which seems 
quite slow


I'm in 3.108 and if you edit preference calendar id.cache.enabled, 
you can define, for each calendar, if it is cached or not. But there's 
no possibility for windowed cache.

For older version (cf attachement), this value was forced.

regards
--
Fabrice Peraud
--
users@sogo.nu
https://inverse.ca/sogo/lists---BeginMessage---

Hi,
To see if it resolves some problems, I've commented the line 
directory.setProperty(cache.enabled, true); in the 
chrome/content/calendar/folder-handler.js of the connector module. It's 
working.
First, I tried to disable all calendars cache, but I saw that SOGo 
connector module forces the property calendar id.cache.enabled
Could you explain why the cache is forced and wich problems I can 
encounter with my modification ?


Thanks

Fabrice Peraud

--
users@sogo.nu
https://inverse.ca/sogo/lists
---End Message---