You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the lookups that where implemented in the last commits, the queries got way slower. A proper testing toolkit should be built and test the existing queries to prevent introduction of performance issues.
Example
Currently:
SELECT DISTINCT
SamplerAddress,
SamplerToString(SamplerAddress) AS Sampler
FROM flows_raw
Query id: b394549a-1803-4271-95e2-c318f3dd8b77
┌─SamplerAddress───┬─Sampler────────────┐
│ ::ffff:127.0.0.1 │ netmeta.fionera.de │
└──────────────────┴────────────────────┘
1 row in set. Elapsed: 50.286 sec. Processed 741.91 million rows, 11.87 GB (14.75 million rows/s., 236.06 MB/s.)
Original:
SELECT DISTINCT SamplerAddress
FROM flows_raw
Query id: 1f1779a9-1d90-4164-b4de-170db889a5bf
┌─SamplerAddress───┐
│ ::ffff:127.0.0.1 │
└──────────────────┘
1 row in set. Elapsed: 1.501 sec. Processed 741.92 million rows, 11.87 GB (494.32 million rows/s., 7.91 GB/s.)
Solution:
SELECT SamplerToString(SamplerAddress) AS Sampler
FROM
(
SELECT DISTINCT SamplerAddress
FROM flows_raw
)
Query id: 5c80bb3c-dea1-417d-b1fb-bc50b229ef75
┌─Sampler────────────┐
│ netmeta.fionera.de │
└────────────────────┘
1 row in set. Elapsed: 1.522 sec. Processed 741.92 million rows, 11.87 GB (487.55 million rows/s., 7.80 GB/s.)
The text was updated successfully, but these errors were encountered:
Because of the lookups that where implemented in the last commits, the queries got way slower. A proper testing toolkit should be built and test the existing queries to prevent introduction of performance issues.
Example
Currently:
Original:
Solution:
The text was updated successfully, but these errors were encountered: