This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;google group discussion link https://groups.google.com/forum/#!topic/datomic/m6vSa6CjqjQ | |
(ns stringtemp.core | |
(:import datomic.Util) | |
(require [datomic.api :as d] | |
[clojure.java.io :as io])) | |
;;Create the DB | |
(def db-uri "datomic:dev://localhost:4334/stringtemp") | |
(d/create-database db-uri) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns intlong.core | |
(:import datomic.Util) | |
(require [datomic.api :as d] | |
[clojure.java.io :as io])) | |
(def db-uri "datomic:free://localhost:4334/intlong") | |
(d/create-database db-uri) | |
(def conn (d/connect db-uri)) | |
; Schema |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns inmemperformance.core | |
(require [datomic.api :as d] | |
[clojure.java.io :as io])) | |
(def db-uri "datomic:mem://memory") | |
(d/delete-database db-uri) | |
(d/create-database db-uri) | |
(def conn (d/connect db-uri)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns inmemperformance.core | |
(require [datomic.api :as d] | |
[clojure.java.io :as io])) | |
(def db-uri "datomic:mem://memory") | |
(d/delete-database db-uri) | |
(d/create-database db-uri) | |
(def conn (d/connect db-uri)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns merge.core | |
(:import datomic.Util) | |
(require [datomic.api :as d] | |
[clojure.java.io :as io])) | |
(def db-uri "datomic:dev://localhost:4334/merge") | |
(d/create-database db-uri) | |
(def conn (d/connect db-uri)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function metric-grep () { | |
cat *.log | perl -n -e 'print "$1 $2\n" if /^(.*) INFO .* '"$1"' {.*?'"$2"' (.*?)\}/' | less | |
} | |
# call like: | |
# metric-grep :StorageGetMsec | |
# output example |
NewerOlder