Skip to content

Commit d69df01

Browse files
committed
v1.8.0
1 parent 43727f9 commit d69df01

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Save data source to file locally in CSV format with `,` (comma) delimiter
256256

257257
#### `table.index_foreign_keys_values(relations)`
258258

259-
Creates a three-level dictionary of foreign key references optimized to speed up validation process in a form of `{resource1: { (foreign_key_field1, foreign_key_field2) : { (value1, value2) : {one_keyedrow}, ... }}}`.
259+
Creates a three-level dictionary of foreign key references optimized to speed up validation process in a form of `{resource1: { (foreign_key_field1, foreign_key_field2) : { (value1, value2) : {one_keyedrow}, ... }}}`.
260260
For each foreign key of the schema it will iterate through the corresponding `relations['resource']` to create an index (i.e. a dict) of existing values for the foreign fields and store on keyed row for each value combination.
261261
The optimization relies on the indexation of possible values for one foreign key in a hashmap to later speed up resolution.
262262
This method is public to allow creating the index once to apply it on multiple tables charing the same schema (typically [grouped resources in datapackage](https://github.com/frictionlessdata/datapackage-py#group))
@@ -826,6 +826,10 @@ and `mock` packages. These packages are available only in tox envionments.
826826

827827
Here described only breaking and the most important changes. The full changelog and documentation for all released versions can be found in the nicely formatted [commit history](https://github.com/frictionlessdata/tableschema-py/commits/master).
828828

829+
#### v1.8
830+
831+
- Added `table.index_foreign_keys_values` and improved foreign key checks performance
832+
829833
#### v1.7
830834

831835
- Added `field.schema` property

tableschema/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.4
1+
1.8.0

0 commit comments

Comments
 (0)