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

Quality of life changes around JSONL & MongoDB #2175

Merged
merged 3 commits into from
Nov 17, 2024
Merged

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Oct 30, 2024

  • Better error handling and logging on JSONL insert
  • Parallel inserts from MongoDB
  • Convenience methods and config for creating indexes: nothing changes by default, but indexes can now be made when inserting from JSONL data.

@ml-evs ml-evs requested a review from CasperWA as a code owner October 30, 2024 11:20
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 68.29268% with 13 lines in your changes missing coverage. Please review.

Project coverage is 90.67%. Comparing base (ce04b39) to head (08e0108).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
optimade/utils.py 56.00% 11 Missing ⚠️
...made/server/entry_collections/entry_collections.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2175      +/-   ##
==========================================
- Coverage   90.80%   90.67%   -0.14%     
==========================================
  Files          75       75              
  Lines        4819     4845      +26     
==========================================
+ Hits         4376     4393      +17     
- Misses        443      452       +9     
Flag Coverage Δ
project 90.67% <68.29%> (-0.14%) ⬇️
validator 90.67% <68.29%> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ml-evs ml-evs marked this pull request as draft October 31, 2024 12:29
@ml-evs ml-evs force-pushed the ml-evs/some-qol-fixes branch from dd2c71e to 43ef254 Compare November 16, 2024 23:37
@ml-evs ml-evs marked this pull request as ready for review November 16, 2024 23:37
@ml-evs ml-evs force-pushed the ml-evs/some-qol-fixes branch 7 times, most recently from 451b4bc to 2da4263 Compare November 17, 2024 12:27
- provide method for creating indexes
- use unordered batch inserts
- refactor abstract insert method to be clearer
@ml-evs ml-evs force-pushed the ml-evs/some-qol-fixes branch 3 times, most recently from 7e656f2 to 11e6bf4 Compare November 17, 2024 12:52
- Make creation of default index configurable

- Lint index creation

- Add wrapper call in Elasticsearch to create_default_index

- Add hacky test for index creation

- Make index before insert
@ml-evs ml-evs force-pushed the ml-evs/some-qol-fixes branch from 11e6bf4 to 08e0108 Compare November 17, 2024 13:23
@ml-evs
Copy link
Member Author

ml-evs commented Nov 17, 2024

I'm going to merge, can potentially backport these changes to 1.1.x but not super important, otherwise will wait for 1.2.x release

@ml-evs ml-evs merged commit f34cff3 into main Nov 17, 2024
12 of 13 checks passed
@ml-evs ml-evs deleted the ml-evs/some-qol-fixes branch November 17, 2024 13:39
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.

1 participant