Thank you much for your help. My Clojure code is clumsy, for sure. Your 
version of much better. 

The server is Jetty. 

There are only 2 routes in the whole app, at the 2 URLs I posted above. 

I will start logging OutOfMemory errors. 

If memory is not the problem, what other problems should I look for? 



On Monday, October 22, 2012 3:09:39 PM UTC-4, Aaron Cohen wrote:
>
> On Mon, Oct 22, 2012 at 2:54 PM, Aaron Cohen 
> <aa...@assonance.org<javascript:>> 
> wrote: 
> > On Mon, Oct 22, 2012 at 2:51 PM, Aaron Cohen 
> > <aa...@assonance.org<javascript:>> 
> wrote: 
> >> I think that what you are doing here is something like the following?: 
> >> 
> >> (into {} (keep #(is-current? %2) map-of-all-user-maps) 
> > 
> > Bah, used the wrong function, since keep works on nil/not-nil this 
> should be: 
> > (into {} (filter #(is-current? %2) map-of-all-user-maps) 
>
> Or maybe my mental compiler is a little broken and that should be: 
> (into {} (filter #(-> % val is-current?) map-of-all-user-maps) 
>
> As to why your app dies after a couple of days. It may because of 
> continually re-def'ing "updated-registry", but it may not be. What do 
> your ring routes look like, and what are you using to serve your web 
> app? 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to