Changeset: 86df588d326b for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/86df588d326b Removed Files: HOWTO.txt Branch: pp_hashjoin Log Message:
no longer need this explanation to run oahash-join diffs (97 lines): diff --git a/HOWTO.txt b/HOWTO.txt deleted file mode 100644 --- a/HOWTO.txt +++ /dev/null @@ -1,92 +0,0 @@ -1. To use OAHash for joins: - -select debug(524288); -- useOAHash == 1U<<19 -select debug(537395200); -- forcemito & useOAHash == 1U<<19 & 1U<<29 - -2. Basic query: - -drop table if exists l; -drop table if exists r; -create table l (l1 int, l2 int, l3 int); -create table r (r1 int, r2 int, r3 int); -create table s (s1 int, s2 int, s3 int); - -insert into l values - (42, 44, 11), - (41, 45, 22), - (43, 42, 33); - -insert into r values - (41, 44, 10), - (42, 44, 20), - (43, 44, 30), - (41, 45, 40), - (43, 45, 50), - (43, 44, 60), - (42, 44, 70), - (42, 44, 80); - -insert into s values - (41, 44, 10), - (42, 44, 20), - (34, 44, 30), - (41, 45, 40), - (34, 45, 50), - (34, 44, 60), - (42, 44, 70), - (42, 44, 80); - -select r1, count(l1), sum(s1) from l, r, s where r1 = l1 and r1 = s1 group by r1; - -3. TPC-H query: -3.1 load your own tpc-h data, probably an SF smaller than 1GB -3.2 remove the keys: - -alter table customer rename to customer_key; -alter table lineitem rename to lineitem_key; -alter table nation rename to nation_key; -alter table orders rename to orders_key; -alter table part rename to part_key; -alter table partsupp rename to partsupp_key; -alter table region rename to region_key; -alter table supplier rename to supplier_key; - -create table customer (like customer_key); -create table lineitem (like lineitem_key); -create table nation (like nation_key); -create table orders (like orders_key); -create table part (like part_key); -create table partsupp (like partsupp_key); -create table region (like region_key); -create table supplier (like supplier_key); - -insert into customer select * from customer_key; -insert into lineitem select * from lineitem_key; -insert into nation select * from nation_key; -insert into orders select * from orders_key; -insert into part select * from part_key; -insert into partsupp select * from partsupp_key; -insert into region select * from region_key; -insert into supplier select * from supplier_key; - -3.3 run 03.sql: - -select - l_orderkey - , sum(l_extendedprice * (1 - l_discount)) as revenue - , o_orderdate - , o_shippriority -from - lineitem, orders, customer -where - l_orderkey = o_orderkey - and c_custkey = o_custkey - and c_mktsegment = 'BUILDING' - and o_orderdate < date '1995-03-15' - and l_shipdate > date '1995-03-15' -group by - l_orderkey, o_orderdate, o_shippriority -order by - revenue desc, o_orderdate -limit 10 -; _______________________________________________ checkin-list mailing list -- [email protected] To unsubscribe send an email to [email protected]
