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
;project.clj | |
;(defproject depstest "0.1.0-SNAPSHOT" | |
; :description "FIXME: write description" | |
; :url "http://example.com/FIXME" | |
; :license {:name "Eclipse Public License" | |
; :url "http://www.eclipse.org/legal/epl-v10.html"} | |
; :dependencies [[org.clojure/clojure "1.9.0-alpha19"] | |
; [ring "1.6.3"] | |
; [com.datomic/clj-client "0.8.606"] |
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 releasetest.limit) | |
(require '[datomic.api :as d]) | |
(d/get-database-names "datomic:dev://localhost:4334/*") | |
(def uri "datomic:dev://localhost:4334/mbrainz-1968-1973") | |
(def conn (d/connect uri)) | |
(def db (d/db conn)) |
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
grep -oE ":GarbageSegments .*?}" datomicmetrics48hrsorted.json |
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
$ diff -rq ~/Downloads/datomic-console-0.1.216 ~/Downloads/datomic-console-0.1.214 | |
Files /Users/jbin/Downloads/datomic-console-0.1.216/README-CONSOLE.md and /Users/jbin/Downloads/datomic-console-0.1.214/README-CONSOLE.md differ | |
Only in /Users/jbin/Downloads/datomic-console-0.1.214/lib/console: datomic-console-0.1.214.jar | |
Only in /Users/jbin/Downloads/datomic-console-0.1.216/lib/console: datomic-console-0.1.216.jar | |
Only in /Users/jbin/Downloads/datomic-console-0.1.214/lib/console: jetty-util-8.1.11.v20130520.jar | |
Only in /Users/jbin/Downloads/datomic-console-0.1.214/lib/console: jetty-webapp-8.1.11.v20130520.jar | |
Only in /Users/jbin/Downloads/datomic-console-0.1.216/lib/console: jetty-webapp-9.3.7.v20160115.jar | |
Only in /Users/jbin/Downloads/datomic-console-0.1.214/lib/console: jetty-xml-8.1.11.v20130520.jar | |
Only in /Users/jbin/Downloads/datomic-console-0.1.216/lib/console: jetty-xml-9.3.7.v20160115.jar |
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 entitytest | |
(:require [clojure.core.async :refer (<!!)] | |
[datomic.client :as client] | |
[datomic.api :as d])) | |
(def db-uri "datomic:dev://localhost:4334/entity") | |
(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
Starting nREPL server... | |
/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java -Dfile.encoding=UTF-8 -Dpython.cachedir.skip=true -XX:MaxPermSize=500M -verbose:gc -XX:+PrintGCDetails -Xloggc:gclog -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=20 -XX:GCLogFileSize=128M -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError -Xms2G -XX:-OmitStackTraceInFastThrow -Xmx2G -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dclojure.compile.path=/Users/jbin/Desktop/Jaret/Projects/workproof/pullperf/Cook/scheduler/target/classes -Dcook.version=1.0.1-SNAPSHOT -Dclojure.debug=false -Didea.launcher.port=7537 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA CE.app/Contents/bin" -classpath "/Users/jbin/Desktop/Jaret/Projects/workproof/pullperf/Cook/scheduler/test:/Users/jbin/Desktop/Jaret/Projects/workproof/pullperf/Cook/scheduler/src:/Users/jbin/Desktop/Jaret/Projects/workproof/pullperf/Cook/scheduler/test-resources:/Users/jbin/Desktop/Jaret/Projects/work |
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
;****How to Merge two attributes in Datomic.**** | |
; | |
;Our database has recorded two attributes for a user. The user's e-mail and the users username. | |
;The username is required to be the e-mail for the user. Due to a design decision, e-mails will no longer | |
;be recorded. As such we need to depricate the e-mail attribute and merge it to our username attribute to ensure | |
;all e-mails represent usernames. | |
; | |
;The steps to this process are as follows: | |
; | |
;1. Rename the old attribute (i.e. :user/email to :user/email-deprecated) |
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
/target | |
/classes | |
/checkouts | |
pom.xml | |
pom.xml.asc | |
*.jar | |
*.class | |
/.lein-* | |
/.nrepl-port | |
.hgignore |
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
The Datomic Pro peer can create the following CloudWatch metrics: | |
-----------------------------------PEER METRICS | |
|-------------------------------+------------+---------------+-----------------------------------------------------------------------------+ | |
| Metric | Units | Statistic | Description | | |
|-------------------------------+------------+---------------+-----------------------------------------------------------------------------+ | |
| AvailableMB | MB | minimum | unused RAM on peer * | |
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
The Datomic Pro peer can create the following CloudWatch metrics: | |
-----------------------------------PEER METRICS | |
|-------------------------------+------------+---------------+-----------------------------------------------------------------------------+ | |
| Metric | Units | Statistic | Description | | |
|-------------------------------+------------+---------------+-----------------------------------------------------------------------------+ | |
| AvailableMB | MB | minimum | unused RAM on peer * | |