Skip to content

Conversation

@norberttech
Copy link
Member

Change Log

Added

  • Flow to Doctrine Dbal schema converter

Fixed

  • links in all repos readme

Changed

  • Moved UPGRADE.md to documentation folder to make it available as a static website

Removed

Deprecated

Security


Description

Resolves: #1428

@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.783mb +0.07%  | 555.854ms +0.38% | ±0.59% +32.12%  |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 4.857mb +0.07%  | 1.062s +0.70%    | ±0.27% -57.53%  |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.298mb +0.00% | 927.067ms +4.15% | ±1.30% +375.48% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.514mb +0.07%  | 35.439ms -0.66%  | ±0.42% -39.23%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.488mb +0.07%  | 598.516ms +0.00% | ±0.60% +39.78%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| benchmark                   | subject                  | revs | its | mem_peak         | mode            | rstdev         |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
| RenameEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 127.310mb +0.00% | 71.842ms +0.91% | ±0.50% -38.17% |
+-----------------------------+--------------------------+------+-----+------------------+-----------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 63.981mb +0.01%  | 101.828ms +0.09% | ±1.12% +15.91%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.328mb +0.00%  | 96.849ms -0.12%  | ±1.15% +410.58% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 161.169mb +0.00% | 20.871s +1.08%   | ±0.32% +82.21%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.980mb +0.02%  | 31.308ms +1.36%  | ±1.03% +30.28%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev           |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.953mb +0.00% | 463.719ms +3.89% | ±1.53% +50.04%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.143mb +0.01%  | 234.243ms +2.71% | ±1.48% +54.82%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.665mb +0.02%  | 51.414ms +1.50%  | ±0.85% +3771.38% |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 96.996mb +0.00%  | 4.119ms +29.27%  | ±3.62% +113.64%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.278mb +0.00% | 184.743ms -2.79% | ±1.22% -47.94%   |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 96.998mb +0.00%  | 18.913ms -1.26%  | ±0.75% +372.01%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.871mb +0.00%  | 2.006ms +41.69%  | ±2.51% -15.84%   |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.871mb +0.00%  | 2.012ms +36.17%  | ±1.49% -46.92%   |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.032mb +0.00%  | 5.242ms +17.04%  | ±1.56% -51.21%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.561mb +0.00%  | 16.976ms +2.70%  | ±1.46% -35.27%   |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.561mb +0.00%  | 16.920ms +4.76%  | ±0.40% -58.32%   |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.252mb +0.00%  | 2.000μs +10.74%  | ±0.00% -100.00%  |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.252mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%     |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.470mb +0.00% | 15.549ms +6.46%  | ±1.43% +126.13%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.537mb +0.00% | 72.539ms +2.30%  | ±0.62% -71.73%   |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.080mb +0.00%  | 1.954ms +52.50%  | ±2.35% -9.72%    |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.378mb +0.00% | 65.439ms +3.94%  | ±0.21% -53.65%   |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.133mb +0.00%  | 4.473ms +23.26%  | ±1.81% -0.73%    |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.540mb +0.00%  | 44.945ms +5.35%  | ±1.16% +687.92%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.540mb +0.00%  | 44.960ms +5.12%  | ±1.50% +9.10%    |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.540mb +0.00%  | 46.485ms +10.06% | ±3.05% +219.24%  |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.692mb +0.00%  | 8.614ms +2.76%   | ±2.52% +253.71%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.442mb +0.00%  | 31.187ms +5.89%  | ±1.39% +183.20%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.252mb +0.00%  | 14.582μs +10.95% | ±0.98% -60.79%   |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.252mb +0.00%  | 17.333μs +8.17%  | ±2.35% -29.48%   |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.279mb +0.00% | 190.043ms -0.85% | ±2.56% +58.55%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 43.788mb +0.01%  | 358.782ms +0.02% | ±0.08% -75.28%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.598mb +0.03%  | 73.060ms +0.89%  | ±0.92% +21.67%   |
+-------------------+----------------------------+------+-----+------------------+------------------+------------------+

@codecov
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 85.18519% with 16 lines in your changes missing coverage. Please review.

Project coverage is 82.91%. Comparing base (a1731cb) to head (cba7357).
Report is 3 commits behind head on 1.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1429      +/-   ##
==========================================
+ Coverage   82.88%   82.91%   +0.02%     
==========================================
  Files         655      657       +2     
  Lines       17521    17629     +108     
==========================================
+ Hits        14523    14617      +94     
- Misses       2998     3012      +14     
Components Coverage Δ
etl 85.75% <ø> (+0.01%) ⬆️
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.33% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-rdsl 87.09% <ø> (ø)
lib-snappy 91.16% <ø> (+0.46%) ⬆️
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 88.47% <85.18%> (-1.67%) ⬇️
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 80.85% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)

# Upgrade Guide

This document provides guidelines for upgrading between versions of Flow PHP.
This document provides guidelines for upgrading between versions of Flow PHP.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave that file main folder and link in it to that new docs page, so if anyone looks at repo first, he will not be lost.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually slowly trying to move away everything to website and turn it into main documentation source, thats why I'm fixing links.

Ideally I would like to keep just very minimalistic README.md on the root and put links from it to all important places like UPGRADING or CONTRIBUTING

My goal is to make the docs more interactive, with some cross referencing and mentions.

@norberttech norberttech enabled auto-merge (squash) January 30, 2025 16:33
@norberttech norberttech disabled auto-merge January 30, 2025 16:33
@norberttech norberttech merged commit 46aca0e into flow-php:1.x Jan 30, 2025
23 checks passed
@norberttech norberttech mentioned this pull request Feb 1, 2025
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.

Covert Flow Schema to Doctrine Dbal Schema

2 participants