Skip to content

Conversation

@norberttech
Copy link
Member

@norberttech norberttech commented Sep 24, 2024

Change Log

Added

Fixed

  • Don't call loaders when rows are empty

Changed

Removed

Deprecated

Security


Description

Resolves #1231

@github-actions
Copy link
Contributor

Flow PHP - Benchmarks

Results of the benchmarks from this PR are compared with the results from 1.x branch.

Extractors
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| benchmark             | subject           | revs | its | mem_peak        | mode             | rstdev          |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.546mb +0.01%  | 515.371ms +0.87% | ±0.23% +17.65%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.660mb +0.01%  | 1.100s +2.05%    | ±0.45% -12.81%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 29.117mb +0.00% | 437.743ms +1.37% | ±0.35% -86.76%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.302mb +0.01%  | 33.311ms +0.25%  | ±1.67% +213.44% |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.284mb +0.01%  | 695.264ms +4.40% | ±1.97% +7.30%   |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 116.579mb +0.00% | 60.039ms -1.57% | ±0.89% -60.86% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.744mb +0.00%  | 126.876ms +2.25% | ±0.73% +34.33%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 90.353mb +0.00%  | 101.219ms -2.19% | ±1.26% +118.11% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 124.471mb +0.00% | 1.244s +0.26%    | ±0.46% -30.12%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.493mb +0.00%  | 29.145ms -0.37%  | ±0.85% +0.34%   |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 53.225mb +0.00%  | 396.795ms -0.51% | ±0.76% -72.75%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 13.491mb +0.00%  | 80.328ms +1.99%  | ±3.12% +248.79% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 107.421mb +0.00% | 469.953ms -0.38% | ±1.00% +108.14% |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.780mb +0.00%  | 241.312ms +1.97% | ±0.31% -57.22%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.618mb +0.00%  | 51.522ms -0.31%  | ±0.44% -8.09%   |
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 87.335mb +0.00%  | 3.332ms -8.98%   | ±2.71% -3.61%   |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 102.939mb +0.00% | 191.245ms -0.11% | ±2.55% +487.60% |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 85.659mb +0.00%  | 19.424ms +3.31%  | ±1.65% +15.51%  |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 88.575mb +0.00%  | 1.692ms +0.44%   | ±2.53% +28.89%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 88.575mb +0.00%  | 1.713ms -1.26%   | ±2.29% +6.39%   |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 85.687mb +0.00%  | 2.852ms +0.09%   | ±2.84% +12.97%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 86.281mb +0.00%  | 17.012ms +3.40%  | ±1.59% +64.20%  |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 86.281mb +0.00%  | 16.765ms +0.28%  | ±0.81% -4.23%   |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 84.120mb +0.00%  | 1.794μs 0.00%    | ±2.67% 0.00%    |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 84.120mb +0.00%  | 0.400μs +33.33%  | ±0.00% +0.00%   |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 93.535mb +0.00%  | 12.624ms +1.04%  | ±1.16% -29.85%  |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 122.906mb +0.00% | 62.521ms +1.14%  | ±0.72% +415.27% |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 86.801mb +0.00%  | 1.554ms +7.01%   | ±2.84% +53.68%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 90.092mb +0.00%  | 59.586ms -0.39%  | ±0.34% -80.10%  |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 88.837mb +0.00%  | 4.353ms +3.20%   | ±2.40% +234.24% |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 84.269mb +0.00%  | 40.015ms -1.09%  | ±0.60% -49.88%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 84.270mb +0.00%  | 39.917ms +1.50%  | ±0.63% +58.34%  |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 84.269mb +0.00%  | 39.800ms +0.79%  | ±0.77% +9.60%   |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 86.561mb +0.00%  | 7.327ms -0.52%   | ±1.74% -1.59%   |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 84.184mb +0.00%  | 29.087ms +1.36%  | ±1.06% +28.38%  |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 84.120mb +0.00%  | 14.133μs +0.69%  | ±2.88% +44.62%  |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 84.120mb +0.00%  | 16.194μs -4.18%  | ±0.29% -87.93%  |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 102.940mb +0.00% | 194.814ms +1.19% | ±0.84% +72.15%  |
+-------------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@norberttech norberttech merged commit 4eaf245 into flow-php:1.x Sep 24, 2024
@norberttech norberttech deleted the bug/dbal-loader-load-empty-rows branch December 5, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doctrine - empty input invokes runtime exception "Bulk data cannot be empty"

1 participant