Skip to content
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

Performance test data #1106

Merged
merged 6 commits into from Apr 11, 2019
Merged

Performance test data #1106

merged 6 commits into from Apr 11, 2019

Conversation

luontola
Copy link
Contributor

@luontola luontola commented Apr 10, 2019

#863

The most critical performance optimizations have been done. More will follow.

@@ -65,10 +67,20 @@
:application/form
:application/licenses))

(mount/defstate all-applications-cache
:start (atom {:last-processed-event-id 0
:applications nil}))
Copy link
Contributor

@opqdonut opqdonut Apr 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core.cache has nice functional caches with various startegies... would they be applicable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The events are immutable and the injections are not yet cached in state, so for now an atom is enough. I'll keep core.cache in mind when doing further optimizations.

@luontola luontola mentioned this pull request Apr 11, 2019
6 tasks
The following tests are coupled to the amount of test data and would break:
  rems.migrations.test-convert-to-dynamic-applications/test-migration
  rems.api.test-catalogue-items/catalogue-items-api-test
Copy link
Contributor

@opqdonut opqdonut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some suggestions ... otherwise fine

src/clj/rems/db/test_data.clj Outdated Show resolved Hide resolved
src/clj/rems/db/test_data.clj Show resolved Hide resolved
src/clj/rems/db/test_data.clj Outdated Show resolved Hide resolved
@luontola luontola merged commit e57180d into master Apr 11, 2019
@luontola luontola deleted the perf-testing branch April 11, 2019 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants