Created
February 3, 2017 17:08
-
-
Save jdkealy/75451acf435a877df198abe4a028042c to your computer and use it in GitHub Desktop.
This file contains 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
(defn max-fk-for-org | |
"query runs way too slow" | |
[org] | |
(ffirst | |
(d/q '[:find (max ?fk) | |
:in $ ?org | |
:where | |
[?collection :collection/organization ?org] | |
[?content :content/collection ?collection] | |
[?content :content/fk ?fk]] | |
(db/_d) org))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment