This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-14
Channels
- # aatree (1)
- # admin-announcements (1)
- # beginners (12)
- # boot (359)
- # cljs-dev (23)
- # cljsjs (2)
- # cljsrn (1)
- # clojure (53)
- # clojure-czech (5)
- # clojure-madison (1)
- # clojure-russia (15)
- # clojured (8)
- # clojurescript (16)
- # community-development (2)
- # core-async (6)
- # cursive (19)
- # datomic (31)
- # emacs (48)
- # euroclojure (3)
- # hoplon (29)
- # microservices (7)
- # mount (46)
- # off-topic (7)
- # om (11)
- # proton (74)
- # reagent (4)
- # spacemacs (3)
@nxqd: datomic queries return sets, so you'll want to sort as a post-processing step
and what do you mean by filter ?
@nxqd as @val_waeselynck says you don’t do this at the datalog level, but it’s fairly easy to get any equivalent e.g. SQL ORDER BY from Clojure by calling
sort-by` on query results, e.g. (sort-by first (d/q '[:find ?ident ?doc :where [?e :db/doc ?doc][?e :db/ident ?ident]] (d/db conn)))
. Note that sort-by
can be called with a comparator to get ascending or descending (or arbitrary sort) behavior.
Hi all, I just released a library to mock and fork Datomic connections in memory: https://github.com/vvvvalvalval/datomock Your feedback is welcome.
I’m getting a :restore/no-roots
when pointing to s3 (it shows owner / roots / values when I look at it) but its with a newer version than the backup (which is old) so wondering if that would cause it
@hueyp: backup/restore should be compatible across versions. What do you see when you invoke list-backups
? http://docs.datomic.com/backup.html#listing-backups
there is a windows specific issue that manifests as what you’re seeing, also (as of yet unresolved) https://groups.google.com/forum/#!topic/datomic/O6LVi2OjvJ4 but workaround is to provide a valid t.
if you use aws command line for s3 you can list the bucket contents fine, though? (i.e. it’s not a role/permissions issue from the instance?)
[ec2-user@ip-172-30-3-77 datomic-pro-0.9.5350]$ aws s3 ls
PRE roots/
PRE values/
2015-11-21 18:19:18 52 owner
hm, for all my backup cases I’m pointed at a subfolder of the bucket (i.e. not directly at the bucket), not sure if backup dir == bucket (no reasoning apart from the fact that it’s different between configs).
even from free version, backup is storage/version agnostic. free can’t backup to s3 I don’t believe (doesn’t contain AWS deps, etc.)
okay, so maybe having an empty prefix (or whatever, no folder) is an issue … once its done sync’ing local I can just try that out
only issue you’ll have with local copy and s3 is it has to have integrity, may take multiple calls to sync etc. for a full robust copy if it’s large (an issue we see when people copy from s3 bucket to s3 bucket is files not always making it through)
[ec2-user@ip-172-30-3-77 datomic-pro-0.9.5350]$ bin/datomic list-backups file:/home/ec2-user/backup/
(1198779)
glad it shows up fine locally! should be good to go. if you try restore and get any segment missing errors will need to attempt sync/copy again to see if anything from s3 is missing.