Commit a813edd
authored
Add insert_many method to State model for bulk insertion with fingerprint generation (#260)
* Add insert_many method to State model for bulk insertion with fingerprint generation
- Introduced an `insert_many` class method in the State model to handle bulk state insertions while ensuring that fingerprints are generated for states that require them.
- Updated the `_generate_fingerprint` method to maintain existing functionality for individual state insertions.
- Enhanced the overall integrity of state management by ensuring consistent fingerprint generation during bulk operations.
* Refactor state.py to remove unused List import
- Removed the unused List import from the state.py file to clean up the code and improve readability. This change helps maintain a more efficient and organized codebase.
* Refactor fingerprint generation in insert_many method of State model
- Updated the insert_many method to always generate fingerprints for all states, removing the conditional check for does_unites. This change simplifies the logic and ensures consistent fingerprint generation for all state insertions.1 parent d582f47 commit a813edd
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
| |||
0 commit comments