Fork me on GitHub

When making RAD reports, we can (and often will) put non-normalized data in the client DB, right? That's the whole point of ro/denormalize?? For example, if we just want to have a line graph showing count over time, data shaped something like [{:date "2020-09-25", :count 1} ...] is the expectation, correct?


Basically. I don't remember exact details off the top of my head, but the point of having denormalized data is mainly performance: performance of the query to feed the UI, performance of the network result processing, etc. Many reports are purely derived data and taking the normalization hit is senseless. As far as using the specific options, read the docstrings. If those are insufficient check out the demo. If that isn't enough, then use the source. The report state machine really isn't that big for the number of features is supports.

🙏 1
Jakub HolĂ˝ (HolyJak)20:11:40

🙏 I am working on a new addition to fulcro-exercises . If somebody(ies) who has finished it recently is around, I would be very happy if you could test the new exercise and let me know how it works - see Thank you!!!

konrad szydlo13:11:57

Thanks Jakub for a new exercise. In are given a few reasons why we'd like to use it. Which point is the exercise testing? Is is the point When you want to make sure that the component has particular props before any data is loaded from the backend.

Jakub HolĂ˝ (HolyJak)15:11:59

Hi, and thank you! The goal is to make sure that you understand that you can make arbitrary edges in the client DB and that you can use eg initial state for that (though how you do it is secondary to the fact that you can do it).

konrad szydlo16:11:44

in that case my knowledge of initial-state is limited to using it like this: :initial-state {:ui/number 0} when populating a form with some date before getting data from server.

Jakub HolĂ˝ (HolyJak)17:11:19

I guess you also know to compose child's init state into parent's?

Jakub HolĂ˝ (HolyJak)17:11:45

@U0530ACAK are you implying that you don't know how to do the task because you don't know enough about initial state?