Commit a3d66e6
committed
store: Count entities during copying
We used to count entities after all the data had been copied, but that is a
very slow operation for large subgraphs; that in turn can lead to bad
side-effects like connection timeouts and the copy ultimately failing.
We now keep track of the number of current entity versions that we copy
with each batch and calculate the entity count incrementally1 parent f3af9cf commit a3d66e6
4 files changed
Lines changed: 63 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
482 | 484 | | |
483 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
484 | 490 | | |
485 | 491 | | |
486 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
| 1595 | + | |
| 1596 | + | |
1598 | 1597 | | |
1599 | | - | |
1600 | | - | |
1601 | | - | |
| 1598 | + | |
1602 | 1599 | | |
1603 | 1600 | | |
1604 | 1601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1040 | 1043 | | |
1041 | 1044 | | |
1042 | 1045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4799 | 4799 | | |
4800 | 4800 | | |
4801 | 4801 | | |
| 4802 | + | |
| 4803 | + | |
| 4804 | + | |
| 4805 | + | |
4802 | 4806 | | |
4803 | 4807 | | |
4804 | 4808 | | |
| |||
4810 | 4814 | | |
4811 | 4815 | | |
4812 | 4816 | | |
| 4817 | + | |
| 4818 | + | |
4813 | 4819 | | |
4814 | 4820 | | |
4815 | 4821 | | |
| |||
4905 | 4911 | | |
4906 | 4912 | | |
4907 | 4913 | | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
4908 | 4920 | | |
4909 | 4921 | | |
4910 | 4922 | | |
| |||
4917 | 4929 | | |
4918 | 4930 | | |
4919 | 4931 | | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
| 4954 | + | |
| 4955 | + | |
| 4956 | + | |
| 4957 | + | |
| 4958 | + | |
| 4959 | + | |
| 4960 | + | |
| 4961 | + | |
| 4962 | + | |
| 4963 | + | |
| 4964 | + | |
| 4965 | + | |
4920 | 4966 | | |
4921 | 4967 | | |
4922 | 4968 | | |
| |||
0 commit comments