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

feature: insert into xxx select * from ttt1,Poor insertion performance #689

Closed
2 of 3 tasks
shangyanwen opened this issue Oct 11, 2022 · 0 comments · Fixed by #1497
Closed
2 of 3 tasks

feature: insert into xxx select * from ttt1,Poor insertion performance #689

shangyanwen opened this issue Oct 11, 2022 · 0 comments · Fixed by #1497
Assignees
Labels
A-feature feature with good idea B-performance C-stonedb-5.7 associated with stonedb 5.7 C-stonedb-8.0 associated with stonedb 8.0 prio: low Low priority

Comments

@shangyanwen
Copy link
Contributor

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

#It takes more than 1 hour and no result is displayed

insert into lineorder_flat SELECT `LO_ORDERDATE` , `LO_ORDERKEY` , `LO_LINENUMBER` , `LO_CUSTKEY` , `LO_PARTKEY` , `LO_SUPPKEY` , `LO_ORDERPRIORITY` , `LO_SHIPPRIORITY` , `LO_QUANTITY` , `LO_EXTENDEDPRICE` , `LO_ORDTOTALPRICE` , `LO_DISCOUNT` , `LO_REVENUE` , `LO_SUPPLYCOST` , `LO_TAX` , `LO_COMMITDATE` , `LO_SHIPMODE` , `C_NAME` , `C_ADDRESS` , `C_CITY` , `C_NATION` , `C_REGION` , `C_PHONE` , `C_MKTSEGMENT` , `S_NAME` , `S_ADDRESS` , `S_CITY` , `S_NATION` , `S_REGION` , `S_PHONE` , `P_NAME` , `P_MFGR` , `P_CATEGORY` , `P_BRAND` , `P_COLOR` , `P_TYPE` , `P_SIZE` , `P_CONTAINER` FROM (select lo_orderkey,lo_linenumber,lo_custkey,lo_partkey,lo_suppkey,lo_orderdate,lo_orderpriority,lo_shippriority,lo_quantity,lo_extendedprice,lo_ordtotalprice,lo_discount,lo_revenue,lo_supplycost,lo_tax,lo_commitdate,lo_shipmode from lineorder where lo_orderdate <19940101) l  INNER JOIN customer c ON (c.C_CUSTKEY = l.LO_CUSTKEY)  INNER JOIN supplier s ON (s.S_SUPPKEY = l.LO_SUPPKEY)  INNER JOIN part p ON  (p.P_PARTKEY = l.LO_PARTKEY);

Expected behavior

Good performance, can quickly display the test results

How To Reproduce

Write SQL similar to this syntax to see how long it takes to execute the display result

Environment

Ver 14.14 Distrib 5.7.36_v1.0.1_beta-StoneDB

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!
@shangyanwen shangyanwen added the A-bug Something isn't working label Oct 11, 2022
@shangyanwen shangyanwen added this to the stonedb_5.7_v1.0.1 milestone Oct 17, 2022
@konghaiya konghaiya assigned duanfuxiang0 and unassigned konghaiya Oct 19, 2022
@RingsC RingsC assigned konghaiya and unassigned duanfuxiang0 Nov 29, 2022
@konghaiya konghaiya added A-feature feature with good idea and removed A-bug Something isn't working labels Nov 30, 2022
@shangyanwen shangyanwen changed the title bug: insert into xxx select * from ttt1,Poor insertion performance feature: insert into xxx select * from ttt1,Poor insertion performance Nov 30, 2022
@hustjieke hustjieke added C-stonedb-5.7 associated with stonedb 5.7 C-stonedb-8.0 associated with stonedb 8.0 labels Nov 30, 2022
@wisehead wisehead added B-performance B-storage data type, data storage, insert,update,delete, transactions labels Jan 9, 2023
@hustjieke hustjieke removed PR-performance B-storage data type, data storage, insert,update,delete, transactions labels Jan 30, 2023
@mergify mergify bot closed this as completed in #1497 Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment