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

Added database upsert example #1371

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

norberttech
Copy link
Member

Change Log

Added

  • Added database upsert example

Fixed

Changed

Removed

Deprecated

Security


Description

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.746mb +0.01%  | 536.680ms -1.11% | ±0.74% +340.22% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.813mb +0.01%  | 1.054s -1.37%    | ±0.48% +388.41% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.465mb +0.00% | 902.069ms -1.12% | ±0.66% +39.29%  |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.479mb +0.01%  | 33.798ms +0.02%  | ±0.69% -49.03%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.456mb +0.01%  | 623.716ms +2.29% | ±2.98% +295.14% |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 108.474mb +0.00% | 58.993ms -0.84% | ±0.18% -68.98% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 54.022mb +0.00%  | 100.986ms -1.33% | ±1.02% +201.34% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 76.782mb +0.00%  | 93.356ms -0.95%  | ±0.25% -43.28%  |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.962mb +0.00% | 20.757s +0.36%   | ±0.45% -22.75%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.065mb +0.00%  | 30.532ms -2.44%  | ±0.66% +695.17% |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------------+----------------------------+------+-----+------------------+-------------------+-----------------+
| benchmark               | subject                    | revs | its | mem_peak         | mode              | rstdev          |
+-------------------------+----------------------------+------+-----+------------------+-------------------+-----------------+
| RowsBench               | bench_chunk_10_on_10k      | 2    | 3   | 80.249mb +0.00%  | 3.280ms -3.51%    | ±0.78% -23.18%  |
| RowsBench               | bench_diff_left_1k_on_10k  | 2    | 3   | 97.524mb +0.00%  | 189.651ms +0.85%  | ±0.79% +190.67% |
| RowsBench               | bench_diff_right_1k_on_10k | 2    | 3   | 80.244mb +0.00%  | 18.924ms -0.53%   | ±2.16% +671.36% |
| RowsBench               | bench_drop_1k_on_10k       | 2    | 3   | 81.124mb +0.00%  | 1.542ms -3.52%    | ±1.32% -57.45%  |
| RowsBench               | bench_drop_right_1k_on_10k | 2    | 3   | 81.124mb +0.00%  | 1.565ms -4.10%    | ±2.67% +505.21% |
| RowsBench               | bench_entries_on_10k       | 2    | 3   | 79.284mb +0.00%  | 3.824ms -0.70%    | ±2.34% -12.03%  |
| RowsBench               | bench_filter_on_10k        | 2    | 3   | 79.813mb +0.00%  | 15.130ms +0.33%   | ±0.73% -3.57%   |
| RowsBench               | bench_find_on_10k          | 2    | 3   | 79.813mb +0.00%  | 15.435ms +0.93%   | ±0.88% -24.59%  |
| RowsBench               | bench_find_one_on_10k      | 10   | 3   | 78.505mb +0.00%  | 1.894μs +5.22%    | ±2.53% +0.00%   |
| RowsBench               | bench_first_on_10k         | 10   | 3   | 78.505mb +0.00%  | 0.400μs -20.00%   | ±0.00% +0.00%   |
| RowsBench               | bench_flat_map_on_1k       | 2    | 3   | 86.842mb +0.00%  | 12.734ms -3.32%   | ±0.39% +8.13%   |
| RowsBench               | bench_map_on_10k           | 2    | 3   | 114.189mb +0.00% | 58.668ms -2.54%   | ±1.14% +93.45%  |
| RowsBench               | bench_merge_1k_on_10k      | 2    | 3   | 80.333mb +0.00%  | 1.377ms -11.83%   | ±0.91% -47.48%  |
| RowsBench               | bench_partition_by_on_10k  | 2    | 3   | 83.623mb +0.00%  | 61.999ms -0.70%   | ±2.82% +318.63% |
| RowsBench               | bench_remove_on_10k        | 2    | 3   | 81.386mb +0.00%  | 3.710ms -6.19%    | ±1.38% -26.47%  |
| RowsBench               | bench_sort_asc_on_1k       | 2    | 3   | 78.786mb +0.00%  | 42.383ms -0.39%   | ±0.81% +81.50%  |
| RowsBench               | bench_sort_by_on_1k        | 2    | 3   | 78.786mb +0.00%  | 41.922ms -2.13%   | ±1.14% +67.62%  |
| RowsBench               | bench_sort_desc_on_1k      | 2    | 3   | 78.786mb +0.00%  | 42.833ms +0.16%   | ±1.23% +20.10%  |
| RowsBench               | bench_sort_entries_on_1k   | 2    | 3   | 80.945mb +0.00%  | 8.105ms -1.98%    | ±1.21% +46.81%  |
| RowsBench               | bench_sort_on_1k           | 2    | 3   | 78.695mb +0.00%  | 29.512ms -0.48%   | ±0.62% -2.27%   |
| RowsBench               | bench_take_1k_on_10k       | 10   | 3   | 78.505mb +0.00%  | 14.066μs -1.87%   | ±3.02% +4.80%   |
| RowsBench               | bench_take_right_1k_on_10k | 10   | 3   | 78.505mb +0.00%  | 15.100μs -8.16%   | ±0.54% -70.06%  |
| RowsBench               | bench_unique_on_1k         | 2    | 3   | 97.525mb +0.00%  | 193.590ms -0.93%  | ±0.35% +87.69%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 98.640mb +0.00%  | 440.362ms -0.06%  | ±0.56% -32.13%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 51.471mb +0.00%  | 222.908ms -1.20%  | ±1.17% +48.52%  |
| NativeEntryFactoryBench | bench_entry_factory        | 1    | 3   | 13.642mb +0.00%  | 48.260ms -0.89%   | ±0.72% +30.66%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 43.774mb +0.00%  | 442.445ms +21.86% | ±0.85% +66.09%  |
| TypeDetectorBench       | bench_type_detector        | 1    | 3   | 11.584mb +0.00%  | 72.849ms -0.71%   | ±0.30% -53.14%  |
+-------------------------+----------------------------+------+-----+------------------+-------------------+-----------------+

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.56%. Comparing base (8183a28) to head (18b33e9).
Report is 2 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x    #1371   +/-   ##
=======================================
  Coverage   82.56%   82.56%           
=======================================
  Files         645      645           
  Lines       17341    17341           
=======================================
  Hits        14318    14318           
  Misses       3023     3023           
Components Coverage Δ
etl 85.99% <ø> (ø)
cli 85.17% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 97.36% <ø> (ø)
lib-filesystem 76.23% <ø> (ø)
lib-parquet 84.57% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 90.69% <ø> (ø)
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 77.10% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.49% <ø> (ø)
adapter-doctrine 90.14% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 78.04% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 92.85% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 59.88% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)

@norberttech norberttech merged commit c775d54 into flow-php:1.x Jan 15, 2025
22 checks passed
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.

1 participant