You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Emma Sesmero <em...@gmail.com> on 2013/07/19 15:03:54 UTC

GSOC 2013 - Webapp Admin console

I have been obtaining the users and domains using the james-cli.sh

When I obtain the users (command listusers), it does not take long,
however, when I use the command listdomains, having only 4 domains, it
takes around 30 seconds. Does anyone know why this takes so long?
This makes my web application take too long retrieving this data.Do you
have any nice solution for this?

Thank you in advance.

Re: GSOC 2013 - Webapp Admin console

Posted by Emma Sesmero <em...@gmail.com>.
Thank you very much. It worked great with the guava cache.
El 19/07/2013 16:04, "Ioan Eugen Stan" <st...@gmail.com> escribió:

> I think it does this because you have slow DNS resolution. You could
> cache the information once you get it - we should do this in the
> server but you could do it also in your app. I recommend you use Guava
> Cache [1].
>
> In the mean time you could use A GWT Async call [1]. This way you
> build the table when you get the data.
>
> [1]
> http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideGettingUsedToAsyncCalls
> [2] https://code.google.com/p/guava-libraries/wiki/CachesExplained
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

Re: GSOC 2013 - Webapp Admin console

Posted by Ioan Eugen Stan <st...@gmail.com>.
I think it does this because you have slow DNS resolution. You could
cache the information once you get it - we should do this in the
server but you could do it also in your app. I recommend you use Guava
Cache [1].

In the mean time you could use A GWT Async call [1]. This way you
build the table when you get the data.

[1] http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideGettingUsedToAsyncCalls
[2] https://code.google.com/p/guava-libraries/wiki/CachesExplained

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org