This repository has been archived by the owner on May 22, 2023. It is now read-only.
forked from oltpbenchmark/oltpbench
-
Notifications
You must be signed in to change notification settings - Fork 4
CRDB: unable to run TPC-H #12
Comments
this is the problematic query. executing it over CLI and it runs for minutes, does not finish. SELECT
nation, o_year, sum(amount) AS sum_profit
FROM
(
SELECT
n_name AS nation,
extract('year', o_orderdate) AS o_year,
l_extendedprice * (1 - l_discount)
- ps_supplycost * l_quantity
AS amount
FROM
oltpbench.part,
oltpbench.supplier,
oltpbench.lineitem,
oltpbench.partsupp,
oltpbench.orders,
oltpbench.nation
WHERE
s_suppkey = l_suppkey
AND ps_suppkey = l_suppkey
AND ps_partkey = l_partkey
AND p_partkey = l_partkey
AND o_orderkey = l_orderkey
AND s_nationkey = n_nationkey
AND p_name LIKE '%olive%'
)
AS profit
GROUP BY
nation, o_year
ORDER BY
nation, o_year DESC
explain without tpch indexes...
explain after indexes added...
|
the closed/broken connection is actually caused by a
|
resolved in Also made the following configuration changes:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: