-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application becomes unresponsive after entering a short query in Athena #269
Comments
the main issue is with the (defn get-root-parent-node
[block]
(loop [b block]
(if (:node/title b)
(assoc block :block/parent b)
(recur (first (:block/_children b)))))) |
@jorda0mega I think datascript has a |
So I tried the :limit in datomic pull syntax but that's only for a many attribute. In this case I think we would need the cap the entire list of results rather than one of the attributes. Might be wrong though so let me know if it works |
I also tried just putting a |
Nice. That's what I was thinking as well but I feel there has to be a way to do this at the query level |
I looked at the datascript source and I can't find an option for that. So maybe not. |
@jorda0mega I don't believe there is! The datalog query is set-based, so if there was a native |
Problem
Entering a short query (one or two characters) in Athena will freeze the application. The only way out of it is to close the tab. You need to have data for this.
Expected Behavior
The application should remain responsive and show a list of results in Athena.
Dependencies
To Reproduce
https://athensresearch.github.io/athens/ then load test data, input one or two characters in Athena. The application will freeze.
The text was updated successfully, but these errors were encountered: