This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-15
Channels
- # admin-announcements (60)
- # adventofcode (37)
- # beginners (53)
- # boot (94)
- # bristol-clojurians (1)
- # cider (21)
- # clara (19)
- # cljsrn (1)
- # clojure (222)
- # clojure-chicago (1)
- # clojure-dev (2)
- # clojure-nl (11)
- # clojure-russia (301)
- # clojure-turkiye (1)
- # clojurecup (6)
- # clojurescript (30)
- # core-async (3)
- # cursive (64)
- # datascript (2)
- # datomic (55)
- # devops (16)
- # editors (1)
- # emacs (16)
- # ldnclj (6)
- # off-topic (18)
- # om (113)
- # onyx (3)
- # parinfer (1)
- # proton (48)
- # re-frame (20)
- # reagent (7)
@mikethompson: should we refer to the lib as “re-frame” or “Re-frame”?
I've always called it re-frame
greetings all. I would like an opinion on something. What do you do with large sets of data that are updated a LOT. I mean like 1 or more times per second and the list is over 1000 items long. updating that in app-db is not performant. pagination is an option but that only solves the rendering part, not the updating part.
@jstew what's the slow bit ?
I have a stream of data coming in over a websocket that could have duplicates, so I have to dedupe and merge into app-db.
and you can't use a set or map or something ?
I tried a map but that didn't help that much. It could be that my problem is elsewhere. Only presents itself when my data set grows large though.
so your local dataset is 1000s of items, and new items are arriving on the websocket at the rate of ~1/s ... and you need to dedup and add or update the new item in the dataset ?
one thought - is yr dataset sorted or something ? re-sorting could be killing your perf ?
perhaps you could use a sorted-map-by ?
I bet that would help a lot! I haven't ever used sorted-map-by and didn't even know it was baked into clojure.
i've never used it in cljs...