Ryan King
07/09/2020, 12:40 AM10 + 5
which I store as a string, and I have a numberCache
column storing 15
for querying. But a formula can also be a string, or a date, so now I need a stringCache
column and a boolCache
column. And then there's user input if statements
which I haven't thought about yet and may need to calculate on the fly.
I have dynamic types, and dynamic relationships, and I'm wrangling postgres into shape, but I can't help but feel there must be something better suited? I was thinking of playing with something more schema-less like mongoDB. Any advice would be appreciated!Paul Butler
07/09/2020, 1:18 AMKartik Agaram
10 + 5
? Repeatedly recomputing it would be almost certainly cheaper than a database lookup. If it is worth caching, the first choice of cache is in memory, which would again be much faster than a database lookup. Do you have millions of users running billions of programs a day? If not, a simple program without a database or caching would likely be sufficient for your purposes.Ryan King
07/09/2020, 3:07 AMv1 = 100
, v2 = v1+50
, v3 = v1 + v2
- but I wouldn't expect a chain greater than 20-30 dependencies. It's just important the data is queryable & aggregatable in the future. And I wouldn't be aggregating more than than 10,000 items
I find postgres json columns aren't very great for queries that go more then 1 level deep but maybe I can make things as flat as possible.
Thanks for your help!Ivan Reese
Kartik Agaram
Ryan King
07/09/2020, 4:24 AMtasks
and resources
. A task has various properties (including custom properties) same with resources. A task property may be dependant on other tasks and resources.Ryan King
07/09/2020, 4:26 AMEdward de Jong / Beads Project
07/09/2020, 4:27 AMRyan King
07/09/2020, 4:33 AMJack Rusher
07/09/2020, 7:45 AMEmmanuel Oga
07/09/2020, 8:51 AMHarry Brundage
07/09/2020, 12:51 PMRyan King
07/09/2020, 2:36 PMJack Rusher
07/09/2020, 4:49 PMEdward de Jong / Beads Project
07/09/2020, 4:58 PMRyan King
07/09/2020, 6:03 PMEdward de Jong / Beads Project
07/09/2020, 8:31 PMRyan King
07/16/2020, 3:44 PM