PolarDB-X 1.0和RDS性能对比之慢查询

测试环境:

PolarDB-X 标准版:16C64G(1台)

RDS MySQL5.7: 4C8G(4台)

ECS 压测机: 8C16G(1台)

RDS测试表 单表1亿, PolarDB-X +RDS x4分库分表,单表1亿

我们日常遇到的慢SQL无非有三种:select、DML和DDL,下面我们测试一下慢查询

直连RDS:

show create table sbtest1;
+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table   | Create Table                                                                                                                                                                                                                                                   |
+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| sbtest1 | CREATE TABLE `sbtest1` (
  `id` int(10) unsigned NOT NULL,
  `k` int(10) unsigned NOT NULL DEFAULT '0',
  `c` char(120) NOT NULL DEFAULT '',
  `pad` char(60) NOT NULL DEFAULT '',
  KEY `xid` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 MAX_ROWS=1000000 |
+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
MySQL [sysbenchtest]> select count(*) from sbtest1 where id>90000000;
+----------+
| count(*) |
+----------+
| 10000000 |
+----------+
1 row in set (3.08 sec)
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> show create table sbtest1;
+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table   | Create Table                                                                                                                                                                                                                                                   |
+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| sbtest1 | CREATE TABLE `sbtest1` (
  `id` int(10) unsigned NOT NULL,
  `k` int(10) unsigned NOT NULL DEFAULT '0',
  `c` char(120) NOT NULL DEFAULT '',
  `pad` char(60) NOT NULL DEFAULT '',
  KEY `xid` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 MAX_ROWS=1000000 |
+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
MySQL [sysbenchtest]> explain select * from sbtest1 where k=49910688;
+----+-------------+---------+------------+------+---------------+------+---------+------+----------+----------+-------------+
| id | select_type | table   | partitions | type | possible_keys | key  | key_len | ref  | rows     | filtered | Extra       |
+----+-------------+---------+------------+------+---------------+------+---------+------+----------+----------+-------------+
|  1 | SIMPLE      | sbtest1 | NULL       | ALL  | NULL          | NULL | NULL    | NULL | 98517160 |    10.00 | Using where |
+----+-------------+---------+------------+------+---------------+------+---------+------+----------+----------+-------------+
1 row in set, 1 warning (0.00 sec)
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> 
MySQL [sysbenchtest]> select * from sbtest1 where k=49910688;
+----------+----------+-------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------+
| id       | k        | c                                                                                                                       | pad                                                         |
+----------+----------+-------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------+
|        2 | 49910688 | 95969429576-20587925969-20202408199-67602281819-18293380360-38184587501-73192830026-41693404212-56705243222-89212376805 | 09512147864-77936258834-40901700703-13541171421-15205431759 |
|  1932592 | 49910688 | 95300462086-01976029865-03908771458-42043757199-43194306979-03371283619-51014473101-03203558486-89942175928-07910367542 | 47793239164-29212529603-52298628381-62851829718-23612629571 |
|  2291267 | 49910688 | 39707082874-24288227415-59482120291-45451027765-55741404668-39121097498-01444808723-72780632405-32346833077-31418536846 | 34565313139-61299652508-26944164710-08817979460-19724170744 |
|  3041092 | 49910688 | 64377579313-04081047333-28189033600-68810087253-51932108824-19058780373-85838647646-97892361638-94255157637-76052801561 | 62115569710-98331519466-42365646099-77531809473-50550212392 |
|  3296432 | 49910688 | 64108719611-64909563963-37791421958-00327490304-04734589386-14005510759-38773181695-33457427638-52434744954-18260915197 | 14479249176-52207237333-77696245371-10490628973-67977048824 |
|  5604582 | 49910688 | 92571080246-77014258788-44499887176-20181072030-61493195943-56908629713-73149372887-11404419155-60129562326-35396492884 | 52778867857-13114054894-37143702304-19659790865-68181309170 |
|  5932425 | 49910688 | 62858047807-96218959977-61001003456-16567097907-63543124230-65628522156-33158958800-34417108120-14060793780-84275584602 | 73839795117-40854288193-90262816996-76653748504-68020165930 |
|  6774055 | 49910688 | 59018193320-75212697644-04055816185-79732510435-95635298999-97300805701-47065091551-74379882446-46991775823-07551903081 | 32035371039-68906799256-44437272906-95235150562-69942264661 |
|  6854015 | 49910688 | 94501592616-49656772291-95035172531-46400577987-87193895600-57461571852-81780444414-42179800377-41517144365-48680172713 | 43274799562-28311940568-14642456418-58440085483-12801995338 |
|  9982389 | 49910688 | 48338416013-00392425351-48858835995-34945329887-43013291254-38612910054-50394817834-59257170633-13540099632-99979313039 | 23820868939-40089208647-14730902849-28410178334-78269100628 |
| 10193690 | 49910688 | 04319618957-60952090948-15020438517-50605774538-60744042278-58309570290-56153613386-50571324395-32028420544-94977930970 | 84907622296-33569762495-17851699987-20889709935-87954427127 |
| 14016073 | 49910688 | 72300426405-22898752790-16449752380-54906980031-22244413240-15634428973-49648752889-77211324741-63688635381-98908598514 | 39581874954-35921771275-47017052807-80374882575-00253367290 |
| 16836016 | 49910688 | 54300580044-21411881601-42147058302-16633573727-84958217445-74118485549-84564671863-47748407974-75513051979-44100340444 | 80807762938-99808709252-25241047604-27708236410-26115951846 |
| 17281530 | 49910688 | 75041501700-30643918446-87409217410-54982608774-75972804759-79763845656-06647029199-26406388875-11499105436-66507040196 | 46572103550-97059918160-84100705630-74739531023-41540267359 |
| 17908973 | 49910688 | 92299449890-21583920453-94711452727-47982184637-56879599687-13348504870-91959182860-11763693394-24735469234-52385583460 | 12923353544-06641549608-60921458307-73880306790-14935269083 |
| 18647103 | 49910688 | 01261513065-75705700633-77782244460-52473698453-84650315724-89527471269-40202713031-97646355453-58181427330-47633515211 | 01641876249-71757803701-43072673866-37841518428-91518111108 |
| 19614861 | 49910688 | 03708530196-38175877742-74345130333-35749377684-96066204802-70804958197-42506447953-04686105440-61508018791-35910426912 | 10424459582-50346201644-14641969071-68751701507-00326464676 |
| 21146360 | 49910688 | 45398862172-75317460211-19628667776-38431924092-12594563107-51859842008-87239972188-06960067439-35829384176-69049075003 | 70030608351-74446353069-38545787322-47470704013-66945366423 |
| 21574360 | 49910688 | 31070845535-75156558475-17056974401-88085659316-88772767948-29153112915-22765717719-02217730406-34595582766-05701212482 | 33839042243-57034046503-43206537714-64363142732-53416469641 |
| 23664663 | 49910688 | 10590077387-73527729048-46933764388-61981470918-41107803735-26913097978-23617520632-05111277776-81338591178-60081933316 | 54658757539-63167662437-79878815044-64785719407-04181323165 |
| 23742383 | 49910688 | 06704003335-90677959554-42856233985-25702260123-64965344900-89799780780-91593772855-81878065404-62948177270-50071734912 | 46924721517-56536223416-03781191074-67998944080-09633557528 |
| 23886714 | 49910688 | 91492575043-47039437470-14354708817-61630890944-79916875320-67275860760-32030320877-58364233188-81990949224-55435965361 | 91344809279-39630704870-64702609888-68242949718-21006464289 |
| 28284410 | 49910688 | 52175417970-17872471609-71405587227-75696857421-57225274625-14538806243-75930808711-17122677155-85165992472-89112413016 | 49094808572-38347603842-60394516166-82256022060-52876920289 |
| 30085008 | 49910688 | 06555968889-52800888139-64610201622-52688589872-48635220150-83076449497-41614358317-45245115217-10122300191-90976937681 | 88965569215-92322133397-60652516000-13408489439-92867133313 |
| 30459181 | 49910688 | 78267885060-13645831219-80802976415-61399801368-17352417654-05016460607-19598890922-03324914203-47480261565-78097269991 | 56309031502-21920706916-81885360069-85592985111-86324046448 |
| 32820282 | 49910688 | 79689136925-34467672557-93235063319-63362288878-13306617825-44722712276-89148293301-28885762271-30881327826-89540681913 | 18161845806-44358577525-08453802837-65399078391-31758644210 |
| 34323250 | 49910688 | 41844356244-99060878603-14978843058-47861927085-52408075401-88289216579-54342090131-96253367666-68176249750-75564816761 | 82444863807-82577281160-02436587535-25840756090-33414497385 |
| 34984305 | 49910688 | 67802348821-52357667277-99337803264-62163982011-35382777239-70512556957-70984056894-94922819096-56639735307-86652759400 | 03001684227-92750641032-95851304812-24822352019-83974283964 |
| 35160512 | 49910688 | 52184251827-14017811233-15074376606-90101036089-06019295547-13096722738-08584617252-25860829128-22467877591-41305486151 | 17943249889-15827036158-63198344327-78992948771-60400261485 |
| 35206513 | 49910688 | 35464639748-58530860171-72523404884-51749454632-01952341646-76615823566-53287086891-90583889030-80196753518-25137866160 | 28599256515-02767171452-01081617405-41076475872-20834309296 |
| 36934402 | 49910688 | 08616231556-77653877747-00409780271-11630028076-36432057469-98995649542-54169493357-62519550539-06548641234-58267594637 | 22797401542-49839665338-58193638992-14112424353-07975455091 |
| 37083652 | 49910688 | 88647503950-01938796302-53209202999-63946997451-51939028625-24425651889-57851317464-79420951577-19697069834-21387383749 | 07908088010-37733681659-24783225542-33306793355-81575784981 |
| 37393530 | 49910688 | 30190995816-98758840144-95769787400-12567625033-72893034604-01142771193-09030179526-04585952933-91740423272-08691859847 | 51639006411-82773863972-37127545993-49747677037-48774323394 |
| 38523671 | 49910688 | 30562184546-64992359318-57854531686-48268962957-75534071896-69886290185-70166757971-69305116022-99838825107-55058420227 | 83446698304-41562986582-59875718537-45041326684-76268986732 |
| 38545937 | 49910688 | 98101096770-37669801238-38221100547-91160693867-61876005308-68510363439-13302961046-68152557954-66268153457-21162122901 | 09603098823-16650790551-01910020703-82951566005-32410528403 |
| 39177325 | 49910688 | 28657618689-32982759694-85828902197-10923786656-53933971016-29796423413-33771944569-46314888432-22945989205-42065334329 | 52443819768-86010194980-97582131563-70754318275-88454932967 |
| 39193780 | 49910688 | 89929935938-22612669229-56477138755-06423762673-46453663641-39568711899-25088586912-11763652168-62692196474-29031106440 | 10517233734-91323336566-00681134674-61804163934-40689843384 |
| 40768106 | 49910688 | 88666234842-21630981179-67734335442-88230010728-72390335173-64520045246-41234576149-73867460879-94687308170-46752257727 | 53767736886-06335269137-91293057670-99199159581-22721465817 |
| 45785861 | 49910688 | 02343458436-96689899415-97823726634-65541073971-14967814643-17165098498-45331609695-13303730240-60439971848-06282447980 | 18705199961-05246979759-90420299594-70752316973-21856695369 |
| 46594274 | 49910688 | 99297198515-64171603171-53254590213-85853096907-72148883358-90106253398-10189128419-98708982473-05648424802-24779762295 | 21576078075-49453015862-56665679583-08438978029-29041736916 |
| 50981703 | 49910688 | 91251725574-65102447327-19743873950-99254330892-95780400360-25303476786-67508883540-75441731013-16151370418-90324447922 | 57522226558-59543641109-12098235123-22430144721-62217298072 |
| 53761182 | 49910688 | 95674800151-40728333145-92679053585-63971765402-46028412739-91573138281-95430082066-08002702222-98994920364-76022139229 | 70941501265-38125857274-62931676950-85467300096-85562717544 |
| 54268995 | 49910688 | 48048641824-40182962809-80050280706-28596048494-52324565590-25046863425-31940475716-57434146712-15344798503-75945476479 | 06446781806-70880430639-81905091550-67981028018-74731956908 |
| 57340503 | 49910688 | 59131245471-49175300938-82665584622-08825154869-49717990841-76442029800-08548859827-47009025945-48948542380-98774706029 | 02258410764-63782921669-70193575138-25037334256-51227752297 |
| 57392519 | 49910688 | 80433410681-22636592022-88471159391-06824827714-83397504244-39564732640-39557327400-06681389905-95279366344-13620598660 | 93830711425-42160050188-44186124711-10886083800-57450508359 |
| 57540310 | 49910688 | 17373116781-83756860419-16603100469-77979714688-93439771393-63423484839-95584019738-89798441538-50849872073-93852617043 | 44688111356-32833329606-70385838237-22626430581-97367009171 |
| 57776285 | 49910688 | 18738445692-74454996152-03493008734-96333401380-82665130003-61076222444-97878654858-72517480195-48892460873-91621542763 | 16972332894-35127989640-56840720452-75850975892-34232042687 |
| 58100115 | 49910688 | 64392776923-12967447068-18690812787-27947754923-35940976660-18645231167-31602561134-64328220240-80612943041-83658153397 | 94150621006-08723950903-14765949614-65601728623-16876800336 |
| 60507727 | 49910688 | 27709918070-88555696890-21480686761-85361374329-00801038619-05331565007-40632951135-95433940476-23006652800-15111385156 | 35139471682-63665263800-39432037075-60970127433-20498278992 |
| 63909328 | 49910688 | 35231867576-75781255089-23756606290-57432923651-63146519914-80428411679-31411126961-71102704256-59007526123-82981500413 | 16399923179-23402320849-19337537076-82406203895-12833699964 |
| 64934152 | 49910688 | 07341572499-97231270492-86678447083-94374525554-14251115500-85521431339-31386680729-83881246583-72963763604-46446983092 | 40297907108-62526868340-93132702017-94616212150-24490272201 |
| 65288312 | 49910688 | 09990465520-53030756599-37261606714-70655996708-01275034570-00195246367-31736393717-82948604465-63268166714-23975481821 | 98268657815-10885243942-86690973260-06150563169-75537076366 |
| 66287946 | 49910688 | 84717729993-56965220218-03814481605-81348484038-75380042740-03554866706-60519879775-09821510948-97650828022-14444723795 | 68489239820-26836216523-72444113969-03193683847-32804994641 |
| 66989866 | 49910688 | 12052704717-99081956072-05582800016-78171929100-70429575604-88376963048-28924157523-17497925911-92683282620-18369501757 | 51949659262-01069402271-27885786068-33427964445-22731819624 |
| 67157194 | 49910688 | 54128096879-98743809888-40500237741-79199976776-27562400848-55986852578-85775706258-69790699993-53040402598-65182296294 | 59223627840-88880122715-82231068009-32446707756-18216662020 |
| 68086497 | 49910688 | 71821388416-09332661755-86540140409-43439669705-68728068517-09743552493-91610056075-09398892888-93840539008-18401245968 | 58592191033-82119301333-93349901860-78270782211-78495508224 |
| 71319662 | 49910688 | 65801327758-47132896479-40559997770-40504528548-18972358669-69927898408-96114846987-68602206792-67655344152-45693981619 | 49235397064-33566405130-74613162693-55828256712-68386034037 |
| 72764991 | 49910688 | 15898749689-58749751708-95783814877-86790685421-21453451507-83540646527-09828461201-60813053782-28294952963-70462491072 | 66046574073-35049528583-35562388359-54277457219-43921455396 |
| 73960799 | 49910688 | 22061070113-80973932609-96265061535-53828574583-42507949488-95318145683-56445847039-22366190955-36636906762-52891654418 | 14845969040-03103469427-29554917087-25238228661-91417425466 |
| 75190834 | 49910688 | 58635944046-31189958496-86205792637-57074995532-93222475368-94345615722-29791101616-56715146516-39451622573-83091730098 | 58331498370-66843940193-87984904049-01967265789-54244594302 |
| 76087586 | 49910688 | 33905482192-91294589764-47996442409-83343390077-79283565329-33735503892-66175461783-05212844234-90765957995-40850307061 | 15022079821-55168158988-11633869357-10285004388-87642145680 |
| 76394396 | 49910688 | 29284681851-28602984439-36348583599-26441063144-36884492601-43110091181-06640075906-08493974051-68466035413-19368765304 | 03497780370-48955491968-96624774119-68991559301-32768490281 |
| 79513065 | 49910688 | 34882212038-21717940860-80365884777-41879285696-57300323056-55117348979-89246846175-04729580679-31160737190-16581534543 | 05801038989-68852252171-12375057002-61073273251-03235486546 |
| 79890299 | 49910688 | 49658802406-82322389586-07836299273-27657896321-53465182725-65561049643-77353032506-97686862024-45776808334-65834553906 | 46707393472-03210839009-22664583827-14655683543-56613595251 |
| 80960612 | 49910688 | 56207927430-52942681296-40266653433-42337903223-35062138400-68274953033-83064265414-24010389777-74978546344-66920421046 | 54425625097-97739660083-52149341319-17144055097-06963163069 |
| 86036743 | 49910688 | 04113109207-96186293290-43926561241-23832428947-40372088034-40509960577-98372817262-19896086997-55592645092-98208278827 | 34578641611-33899430758-62382470215-45275405613-09591632082 |
| 87777824 | 49910688 | 27825840227-22814318251-99919967229-07360497396-55073945996-47788049352-83579644293-53878075729-72953047635-78504426081 | 65727178474-27556772135-69294462514-41648570600-64648084292 |
| 87852062 | 49910688 | 70643001581-01026912466-75998230086-55462600488-66855754875-35338874971-29134211453-81944056675-03165515695-65004345451 | 39825317237-72421055998-49810585330-46414898529-76007552529 |
| 88182227 | 49910688 | 29551914963-07966143025-81971853497-83429960044-58850385446-82176747618-99143523702-78799138754-21681257940-34181436955 | 34367460139-70709546052-12212249409-53184470831-74576943436 |
| 88341410 | 49910688 | 43657567407-90941176627-77383376080-47961293500-10605287533-42978332809-07704182294-17630249841-78762004194-42514391555 | 50066341897-82685908691-43535130876-82839868723-03632228841 |
| 90688419 | 49910688 | 56255037369-85117580771-40236749225-85966377641-60774735529-18474409186-67148263865-76881220544-20952645682-60407110249 | 26916622037-26687926627-25668953756-89786504454-33798797078 |
| 91900214 | 49910688 | 94487522630-58036162215-14301115338-19248235198-07490064545-42183697710-44581223845-84601253205-99936583176-62992951799 | 90178609608-91325967430-38259551734-06757437837-23468286999 |
| 93578800 | 49910688 | 57801509461-90718888583-96676111717-05117579772-67837215312-23126839470-59381641573-73701406059-57534094538-47659759696 | 94141383505-69564012089-96629594968-85830492907-39394957649 |
| 94361322 | 49910688 | 04188607862-61506862651-46600242544-76936209311-22989760116-37553789058-34667517266-40116945327-48207690718-08373081217 | 86763333766-93860206797-21387724006-99648155004-73273456574 |
| 95868431 | 49910688 | 10898598583-77173098610-32299144464-48048609768-97854655991-65116795212-10834921818-76330854070-99952189974-07065878898 | 47696673683-20476014941-21589387452-91535518876-37792132682 |
| 98414226 | 49910688 | 33409325589-18501850977-65951470981-88729774431-32261716869-14352046961-44045264719-50034068584-31520968325-61431798418 | 95364744716-39832148251-79142613487-60372826304-39600371280 |
| 98596716 | 49910688 | 78110288588-53487193316-20519648997-36074754943-85378486676-73643212758-23817369447-48535709850-05108097236-88397858449 | 57699805534-95485828997-13844888245-35521179924-14327731945 |
| 98740930 | 49910688 | 38673857684-23997273993-77563295772-50283985075-78895413377-00718664385-43976374825-12875470239-49101334706-13799373143 | 19040621081-27786822711-76972315444-46753066990-48674385545 |
+----------+----------+-------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------+
78 rows in set (5 min 11.53 sec)

直连RDS查询,单表1亿,78条记录,查询了5min11s。

查看监控CPU消耗:

查看监控IO消耗:

PolarDB-X +RDS x4分库分表:

MySQL [polardb2]> show create table sbtest1;
+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table   | Create Table                                                                                                                                                                                                                                                                                                                                    |
+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| sbtest1 | CREATE TABLE `sbtest1` (
	`id` int(11) NOT NULL AUTO_INCREMENT BY GROUP,
	`k` int(11) NOT NULL DEFAULT '0',
	`c` char(120) NOT NULL DEFAULT '',
	`pad` char(60) NOT NULL DEFAULT '',
	KEY `id` (`id`)
) ENGINE = InnoDB AUTO_INCREMENT = 99999875 DEFAULT CHARSET = utf8mb4  dbpartition by hash(`id`) tbpartition by hash(`id`) tbpartitions 4 |
+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.04 sec)
MySQL [polardb2]> explain select * from sbtest1 where k=49910688;
+-------------------------------------------------------------------------------------------------------------------------------------------------------+
| LOGICAL EXECUTIONPLAN                                                                                                                                 |
+-------------------------------------------------------------------------------------------------------------------------------------------------------+
| Gather(concurrent=true)                                                                                                                               |
|   LogicalView(tables="[0000-0031].sbtest1_[000-127]", shardCount=128, sql="SELECT `id`, `k`, `c`, `pad` FROM `sbtest1` AS `sbtest1` WHERE (`k` = ?)") |
| HitCache:false                                                                                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------------------------------+
3 rows in set (0.04 sec)
MySQL [polardb2]> select * from sbtest1 where k=49910688;
+----------+----------+-------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------+
| id       | k        | c                                                                                                                       | pad                                                         |
+----------+----------+-------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------+
| 39193780 | 49910688 | 89929935938-22612669229-56477138755-06423762673-46453663641-39568711899-25088586912-11763652168-62692196474-29031106440 | 10517233734-91323336566-00681134674-61804163934-40689843384 |
|  1932592 | 49910688 | 95300462086-01976029865-03908771458-42043757199-43194306979-03371283619-51014473101-03203558486-89942175928-07910367542 | 47793239164-29212529603-52298628381-62851829718-23612629571 |
|  3296432 | 49910688 | 64108719611-64909563963-37791421958-00327490304-04734589386-14005510759-38773181695-33457427638-52434744954-18260915197 | 14479249176-52207237333-77696245371-10490628973-67977048824 |
| 16836016 | 49910688 | 54300580044-21411881601-42147058302-16633573727-84958217445-74118485549-84564671863-47748407974-75513051979-44100340444 | 80807762938-99808709252-25241047604-27708236410-26115951846 |
| 93578800 | 49910688 | 57801509461-90718888583-96676111717-05117579772-67837215312-23126839470-59381641573-73701406059-57534094538-47659759696 | 94141383505-69564012089-96629594968-85830492907-39394957649 |
| 87777824 | 49910688 | 27825840227-22814318251-99919967229-07360497396-55073945996-47788049352-83579644293-53878075729-72953047635-78504426081 | 65727178474-27556772135-69294462514-41648570600-64648084292 |
| 21574360 | 49910688 | 31070845535-75156558475-17056974401-88085659316-88772767948-29153112915-22765717719-02217730406-34595582766-05701212482 | 33839042243-57034046503-43206537714-64363142732-53416469641 |
|  3041092 | 49910688 | 64377579313-04081047333-28189033600-68810087253-51932108824-19058780373-85838647646-97892361638-94255157637-76052801561 | 62115569710-98331519466-42365646099-77531809473-50550212392 |
| 35160512 | 49910688 | 52184251827-14017811233-15074376606-90101036089-06019295547-13096722738-08584617252-25860829128-22467877591-41305486151 | 17943249889-15827036158-63198344327-78992948771-60400261485 |
| 63909328 | 49910688 | 35231867576-75781255089-23756606290-57432923651-63146519914-80428411679-31411126961-71102704256-59007526123-82981500413 | 16399923179-23402320849-19337537076-82406203895-12833699964 |
| 64934152 | 49910688 | 07341572499-97231270492-86678447083-94374525554-14251115500-85521431339-31386680729-83881246583-72963763604-46446983092 | 40297907108-62526868340-93132702017-94616212150-24490272201 |
| 76394396 | 49910688 | 29284681851-28602984439-36348583599-26441063144-36884492601-43110091181-06640075906-08493974051-68466035413-19368765304 | 03497780370-48955491968-96624774119-68991559301-32768490281 |
| 37083652 | 49910688 | 88647503950-01938796302-53209202999-63946997451-51939028625-24425651889-57851317464-79420951577-19697069834-21387383749 | 07908088010-37733681659-24783225542-33306793355-81575784981 |
| 30085008 | 49910688 | 06555968889-52800888139-64610201622-52688589872-48635220150-83076449497-41614358317-45245115217-10122300191-90976937681 | 88965569215-92322133397-60652516000-13408489439-92867133313 |
| 21146360 | 49910688 | 45398862172-75317460211-19628667776-38431924092-12594563107-51859842008-87239972188-06960067439-35829384176-69049075003 | 70030608351-74446353069-38545787322-47470704013-66945366423 |
| 65288312 | 49910688 | 09990465520-53030756599-37261606714-70655996708-01275034570-00195246367-31736393717-82948604465-63268166714-23975481821 | 98268657815-10885243942-86690973260-06150563169-75537076366 |
| 80960612 | 49910688 | 56207927430-52942681296-40266653433-42337903223-35062138400-68274953033-83064265414-24010389777-74978546344-66920421046 | 54425625097-97739660083-52149341319-17144055097-06963163069 |
| 98596716 | 49910688 | 78110288588-53487193316-20519648997-36074754943-85378486676-73643212758-23817369447-48535709850-05108097236-88397858449 | 57699805534-95485828997-13844888245-35521179924-14327731945 |
| 30459181 | 49910688 | 78267885060-13645831219-80802976415-61399801368-17352417654-05016460607-19598890922-03324914203-47480261565-78097269991 | 56309031502-21920706916-81885360069-85592985111-86324046448 |
|  9982389 | 49910688 | 48338416013-00392425351-48858835995-34945329887-43013291254-38612910054-50394817834-59257170633-13540099632-99979313039 | 23820868939-40089208647-14730902849-28410178334-78269100628 |
| 14016073 | 49910688 | 72300426405-22898752790-16449752380-54906980031-22244413240-15634428973-49648752889-77211324741-63688635381-98908598514 | 39581874954-35921771275-47017052807-80374882575-00253367290 |
| 19614861 | 49910688 | 03708530196-38175877742-74345130333-35749377684-96066204802-70804958197-42506447953-04686105440-61508018791-35910426912 | 10424459582-50346201644-14641969071-68751701507-00326464676 |
| 57776285 | 49910688 | 18738445692-74454996152-03493008734-96333401380-82665130003-61076222444-97878654858-72517480195-48892460873-91621542763 | 16972332894-35127989640-56840720452-75850975892-34232042687 |
| 34984305 | 49910688 | 67802348821-52357667277-99337803264-62163982011-35382777239-70512556957-70984056894-94922819096-56639735307-86652759400 | 03001684227-92750641032-95851304812-24822352019-83974283964 |
| 35206513 | 49910688 | 35464639748-58530860171-72523404884-51749454632-01952341646-76615823566-53287086891-90583889030-80196753518-25137866160 | 28599256515-02767171452-01081617405-41076475872-20834309296 |
| 38545937 | 49910688 | 98101096770-37669801238-38221100547-91160693867-61876005308-68510363439-13302961046-68152557954-66268153457-21162122901 | 09603098823-16650790551-01910020703-82951566005-32410528403 |
|  5932425 | 49910688 | 62858047807-96218959977-61001003456-16567097907-63543124230-65628522156-33158958800-34417108120-14060793780-84275584602 | 73839795117-40854288193-90262816996-76653748504-68020165930 |
| 45785861 | 49910688 | 02343458436-96689899415-97823726634-65541073971-14967814643-17165098498-45331609695-13303730240-60439971848-06282447980 | 18705199961-05246979759-90420299594-70752316973-21856695369 |
| 68086497 | 49910688 | 71821388416-09332661755-86540140409-43439669705-68728068517-09743552493-91610056075-09398892888-93840539008-18401245968 | 58592191033-82119301333-93349901860-78270782211-78495508224 |
| 79513065 | 49910688 | 34882212038-21717940860-80365884777-41879285696-57300323056-55117348979-89246846175-04729580679-31160737190-16581534543 | 05801038989-68852252171-12375057002-61073273251-03235486546 |
| 17908973 | 49910688 | 92299449890-21583920453-94711452727-47982184637-56879599687-13348504870-91959182860-11763693394-24735469234-52385583460 | 12923353544-06641549608-60921458307-73880306790-14935269083 |
| 39177325 | 49910688 | 28657618689-32982759694-85828902197-10923786656-53933971016-29796423413-33771944569-46314888432-22945989205-42065334329 | 52443819768-86010194980-97582131563-70754318275-88454932967 |
| 91900214 | 49910688 | 94487522630-58036162215-14301115338-19248235198-07490064545-42183697710-44581223845-84601253205-99936583176-62992951799 | 90178609608-91325967430-38259551734-06757437837-23468286999 |
| 66989866 | 49910688 | 12052704717-99081956072-05582800016-78171929100-70429575604-88376963048-28924157523-17497925911-92683282620-18369501757 | 51949659262-01069402271-27885786068-33427964445-22731819624 |
| 34323250 | 49910688 | 41844356244-99060878603-14978843058-47861927085-52408075401-88289216579-54342090131-96253367666-68176249750-75564816761 | 82444863807-82577281160-02436587535-25840756090-33414497385 |
| 75190834 | 49910688 | 58635944046-31189958496-86205792637-57074995532-93222475368-94345615722-29791101616-56715146516-39451622573-83091730098 | 58331498370-66843940193-87984904049-01967265789-54244594302 |
| 32820282 | 49910688 | 79689136925-34467672557-93235063319-63362288878-13306617825-44722712276-89148293301-28885762271-30881327826-89540681913 | 18161845806-44358577525-08453802837-65399078391-31758644210 |
| 76087586 | 49910688 | 33905482192-91294589764-47996442409-83343390077-79283565329-33735503892-66175461783-05212844234-90765957995-40850307061 | 15022079821-55168158988-11633869357-10285004388-87642145680 |
| 88341410 | 49910688 | 43657567407-90941176627-77383376080-47961293500-10605287533-42978332809-07704182294-17630249841-78762004194-42514391555 | 50066341897-82685908691-43535130876-82839868723-03632228841 |
| 57540310 | 49910688 | 17373116781-83756860419-16603100469-77979714688-93439771393-63423484839-95584019738-89798441538-50849872073-93852617043 | 44688111356-32833329606-70385838237-22626430581-97367009171 |
| 66287946 | 49910688 | 84717729993-56965220218-03814481605-81348484038-75380042740-03554866706-60519879775-09821510948-97650828022-14444723795 | 68489239820-26836216523-72444113969-03193683847-32804994641 |
| 67157194 | 49910688 | 54128096879-98743809888-40500237741-79199976776-27562400848-55986852578-85775706258-69790699993-53040402598-65182296294 | 59223627840-88880122715-82231068009-32446707756-18216662020 |
| 98740930 | 49910688 | 38673857684-23997273993-77563295772-50283985075-78895413377-00718664385-43976374825-12875470239-49101334706-13799373143 | 19040621081-27786822711-76972315444-46753066990-48674385545 |
|  5604582 | 49910688 | 92571080246-77014258788-44499887176-20181072030-61493195943-56908629713-73149372887-11404419155-60129562326-35396492884 | 52778867857-13114054894-37143702304-19659790865-68181309170 |
|        2 | 49910688 | 95969429576-20587925969-20202408199-67602281819-18293380360-38184587501-73192830026-41693404212-56705243222-89212376805 | 09512147864-77936258834-40901700703-13541171421-15205431759 |
| 36934402 | 49910688 | 08616231556-77653877747-00409780271-11630028076-36432057469-98995649542-54169493357-62519550539-06548641234-58267594637 | 22797401542-49839665338-58193638992-14112424353-07975455091 |
| 71319662 | 49910688 | 65801327758-47132896479-40559997770-40504528548-18972358669-69927898408-96114846987-68602206792-67655344152-45693981619 | 49235397064-33566405130-74613162693-55828256712-68386034037 |
| 40768106 | 49910688 | 88666234842-21630981179-67734335442-88230010728-72390335173-64520045246-41234576149-73867460879-94687308170-46752257727 | 53767736886-06335269137-91293057670-99199159581-22721465817 |
| 94361322 | 49910688 | 04188607862-61506862651-46600242544-76936209311-22989760116-37553789058-34667517266-40116945327-48207690718-08373081217 | 86763333766-93860206797-21387724006-99648155004-73273456574 |
| 53761182 | 49910688 | 95674800151-40728333145-92679053585-63971765402-46028412739-91573138281-95430082066-08002702222-98994920364-76022139229 | 70941501265-38125857274-62931676950-85467300096-85562717544 |
| 87852062 | 49910688 | 70643001581-01026912466-75998230086-55462600488-66855754875-35338874971-29134211453-81944056675-03165515695-65004345451 | 39825317237-72421055998-49810585330-46414898529-76007552529 |
| 98414226 | 49910688 | 33409325589-18501850977-65951470981-88729774431-32261716869-14352046961-44045264719-50034068584-31520968325-61431798418 | 95364744716-39832148251-79142613487-60372826304-39600371280 |
| 10193690 | 49910688 | 04319618957-60952090948-15020438517-50605774538-60744042278-58309570290-56153613386-50571324395-32028420544-94977930970 | 84907622296-33569762495-17851699987-20889709935-87954427127 |
| 46594274 | 49910688 | 99297198515-64171603171-53254590213-85853096907-72148883358-90106253398-10189128419-98708982473-05648424802-24779762295 | 21576078075-49453015862-56665679583-08438978029-29041736916 |
| 17281530 | 49910688 | 75041501700-30643918446-87409217410-54982608774-75972804759-79763845656-06647029199-26406388875-11499105436-66507040196 | 46572103550-97059918160-84100705630-74739531023-41540267359 |
| 23886714 | 49910688 | 91492575043-47039437470-14354708817-61630890944-79916875320-67275860760-32030320877-58364233188-81990949224-55435965361 | 91344809279-39630704870-64702609888-68242949718-21006464289 |
| 28284410 | 49910688 | 52175417970-17872471609-71405587227-75696857421-57225274625-14538806243-75930808711-17122677155-85165992472-89112413016 | 49094808572-38347603842-60394516166-82256022060-52876920289 |
| 37393530 | 49910688 | 30190995816-98758840144-95769787400-12567625033-72893034604-01142771193-09030179526-04585952933-91740423272-08691859847 | 51639006411-82773863972-37127545993-49747677037-48774323394 |
| 23742383 | 49910688 | 06704003335-90677959554-42856233985-25702260123-64965344900-89799780780-91593772855-81878065404-62948177270-50071734912 | 46924721517-56536223416-03781191074-67998944080-09633557528 |
| 18647103 | 49910688 | 01261513065-75705700633-77782244460-52473698453-84650315724-89527471269-40202713031-97646355453-58181427330-47633515211 | 01641876249-71757803701-43072673866-37841518428-91518111108 |
| 72764991 | 49910688 | 15898749689-58749751708-95783814877-86790685421-21453451507-83540646527-09828461201-60813053782-28294952963-70462491072 | 66046574073-35049528583-35562388359-54277457219-43921455396 |
|  6774055 | 49910688 | 59018193320-75212697644-04055816185-79732510435-95635298999-97300805701-47065091551-74379882446-46991775823-07551903081 | 32035371039-68906799256-44437272906-95235150562-69942264661 |
| 90688419 | 49910688 | 56255037369-85117580771-40236749225-85966377641-60774735529-18474409186-67148263865-76881220544-20952645682-60407110249 | 26916622037-26687926627-25668953756-89786504454-33798797078 |
|  2291267 | 49910688 | 39707082874-24288227415-59482120291-45451027765-55741404668-39121097498-01444808723-72780632405-32346833077-31418536846 | 34565313139-61299652508-26944164710-08817979460-19724170744 |
| 54268995 | 49910688 | 48048641824-40182962809-80050280706-28596048494-52324565590-25046863425-31940475716-57434146712-15344798503-75945476479 | 06446781806-70880430639-81905091550-67981028018-74731956908 |
| 88182227 | 49910688 | 29551914963-07966143025-81971853497-83429960044-58850385446-82176747618-99143523702-78799138754-21681257940-34181436955 | 34367460139-70709546052-12212249409-53184470831-74576943436 |
| 60507727 | 49910688 | 27709918070-88555696890-21480686761-85361374329-00801038619-05331565007-40632951135-95433940476-23006652800-15111385156 | 35139471682-63665263800-39432037075-60970127433-20498278992 |
| 73960799 | 49910688 | 22061070113-80973932609-96265061535-53828574583-42507949488-95318145683-56445847039-22366190955-36636906762-52891654418 | 14845969040-03103469427-29554917087-25238228661-91417425466 |
| 57340503 | 49910688 | 59131245471-49175300938-82665584622-08825154869-49717990841-76442029800-08548859827-47009025945-48948542380-98774706029 | 02258410764-63782921669-70193575138-25037334256-51227752297 |
| 50981703 | 49910688 | 91251725574-65102447327-19743873950-99254330892-95780400360-25303476786-67508883540-75441731013-16151370418-90324447922 | 57522226558-59543641109-12098235123-22430144721-62217298072 |
| 79890299 | 49910688 | 49658802406-82322389586-07836299273-27657896321-53465182725-65561049643-77353032506-97686862024-45776808334-65834553906 | 46707393472-03210839009-22664583827-14655683543-56613595251 |
| 58100115 | 49910688 | 64392776923-12967447068-18690812787-27947754923-35940976660-18645231167-31602561134-64328220240-80612943041-83658153397 | 94150621006-08723950903-14765949614-65601728623-16876800336 |
| 57392519 | 49910688 | 80433410681-22636592022-88471159391-06824827714-83397504244-39564732640-39557327400-06681389905-95279366344-13620598660 | 93830711425-42160050188-44186124711-10886083800-57450508359 |
| 86036743 | 49910688 | 04113109207-96186293290-43926561241-23832428947-40372088034-40509960577-98372817262-19896086997-55592645092-98208278827 | 34578641611-33899430758-62382470215-45275405613-09591632082 |
| 23664663 | 49910688 | 10590077387-73527729048-46933764388-61981470918-41107803735-26913097978-23617520632-05111277776-81338591178-60081933316 | 54658757539-63167662437-79878815044-64785719407-04181323165 |
| 38523671 | 49910688 | 30562184546-64992359318-57854531686-48268962957-75534071896-69886290185-70166757971-69305116022-99838825107-55058420227 | 83446698304-41562986582-59875718537-45041326684-76268986732 |
|  6854015 | 49910688 | 94501592616-49656772291-95035172531-46400577987-87193895600-57461571852-81780444414-42179800377-41517144365-48680172713 | 43274799562-28311940568-14642456418-58440085483-12801995338 |
| 95868431 | 49910688 | 10898598583-77173098610-32299144464-48048609768-97854655991-65116795212-10834921818-76330854070-99952189974-07065878898 | 47696673683-20476014941-21589387452-91535518876-37792132682 |
+----------+----------+-------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------+
78 rows in set (1 min 13.96 sec)

PolarDB-X +RDS x4分库分表只用了1min13s就查询完毕。

查看监控CPU使用情况:

查看监控IO消耗:

总结:

       对于慢查询来讲,由于 PolarDB-X +RDS的CPU和IO消耗全部分散到每个RDS节点上,所以单个RDS节点的资源消耗较低,并且查询速度较快。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值