Re: [SOGo] Disable Lightning Cached mode

2011-12-16 Thread Alessio Fattorini

Il 15/12/2011 15:36, Francis Lachapelle ha scritto:


The value is in days.


Francis


Thank you very much, i try!


--
Alessio Fattorini (alessio.fattor...@nethesis.it)

nethesis srl - Via degli Olmi 16/4 - 61100 Pesaro (PU)
tel. +39 0721 405516 - fax +39 0721 268147
www.nethesis.it - i...@nethesis.it
--
users@sogo.nu
https://inverse.ca/sogo/lists


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-15 Thread Alain Abello (Lordinux)
Similar to the bug that I've filled two days ago :
http://www.sogo.nu/bugs/view.php?id=1540
But no problem for me to create an event. And I didn't try with cache
enabled : it works !
__
Alain Abello
Lordinux
L'informatique des professionnels libres
http://lordinux.com
alain.abe...@lordinux.com
04 76 56 31 83
06 32 94 48 08 

Le jeudi 15 décembre 2011 à 10:05 +0100, PERAUD Fabrice (DI) a écrit :
 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-15 Thread Ludovic Marcotte

On 15/12/11 04:05, PERAUD Fabrice (DI) wrote:
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. 
We require the cache to be enabled all the time. If you want to limit 
the number of events returned by SOGo, you might want to set 
SOGoDAVCalendarStartTimeLimit at the server level.


--
Ludovic Marcotte
lmarco...@inverse.ca  ::  +1.514.755.3630  ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

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


Re: [SOGo] Disable Lightning Cached mode

2011-12-15 Thread Francis Lachapelle

On 2011-12-15, at 8:26 AM, Alessio Fattorini wrote:

 Il 15/12/2011 13:38, Ludovic Marcotte ha scritto:
 We require the cache to be enabled all the time. If you want to limit
 the number of events returned by SOGo, you might want to set
 SOGoDAVCalendarStartTimeLimit at the server level.
 
 Thank you Ludovic.
 It's an undocumented feature, can you tell me how configure this?
 
 SOGoDAVCalendarStartTimeLimit = X; in my .GNUstepDefault
 
 Does sogo only sync last X days? month? number of events?

The value is in days.


Francis

--
flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca
Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence 
(http://packetfence.org)

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

Re: [SOGo] Disable Lightning Cached mode

2011-12-14 Thread Alessio Fattorini

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


--
Alessio Fattorini (alessio.fattor...@nethesis.it)

nethesis srl - Via degli Olmi 16/4 - 61100 Pesaro (PU)
tel. +39 0721 405516 - fax +39 0721 268147
www.nethesis.it - i...@nethesis.it
--
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---