This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Hello, what kind of settings should I set for a server with only 1 GB or 512 MB of memory?
Found an answer https://stackoverflow.com/questions/26102584/decrease-datomic-memory-usage
(defn get-visitors-with-activities
[siteurl from to]
(d/q '[:find [(pull ?vs [* {:visitor/activity [:activity/path :activity/note]}]) ...]
:in $ ?siteurl ?from ?to
:where
[?s :site/url ?siteurl]
[?s :site/visitors ?vs]
[?vs :visitor/activity ?a]
[?a :activity/timestamp ?dt]
[(.after ^java.util.Date ?dt ^java.util.Date ?from)]
[(.before ^java.util.Date ?dt ^java.util.Date ?to)]
]
(db) siteurl from to))