{"id":167023,"date":"2020-10-06T02:20:34","date_gmt":"2020-10-05T18:20:34","guid":{"rendered":"http:\/\/4563.org\/?p=167023"},"modified":"2020-10-15T14:28:38","modified_gmt":"2020-10-15T06:28:38","slug":"%e5%a6%82%e4%bd%95-10-%e5%88%86%e9%92%9f%e5%86%85%e6%8f%92%e5%85%a5-13-%e4%ba%bf%e6%9d%a1%e8%ae%b0%e5%bd%95%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=167023","title":{"rendered":"\u5982\u4f55 10 \u5206\u949f\u5185\u63d2\u5165 13 \u4ebf\u6761\u8bb0\u5f55\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55 10 \u5206\u949f\u5185\u63d2\u5165 13 \u4ebf\u6761\u8bb0\u5f55\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e4b\u524d\u7684\u4e00\u4e2a\u5e16\u5b50 \u5355\u8868 13 \u4ebf\u8bb0\u5f55\u521b\u5efa\u7d22\u5f15\u9700\u8981\u591a\u957f\u65f6\u95f4\uff1f \u6d4b\u8bd5\u4e86\u5728\u4e00\u53f0 8C32G \u670d\u52a1\u5668\u7ed9\u4e00\u5217\u52a0\u7d22\u5f15\u5927\u6982\u9700\u8981 24 \u5206\u949f\uff0c\u7531\u4e8e\u63d2\u5165\u811a\u672c\u6ca1\u6709\u4f18\u5316\uff0c\u82b1\u8d39\u4e86\u5927\u6982 2 \u4e2a\u5c0f\u65f6\u5de6\u53f3\u3002<\/p>\n<p>\u6700\u8fd1\u7814\u7a76\u4e86\u4e00\u4e0b\uff0c\u8fd8\u662f 8C32G \u670d\u52a1\u5668\uff0c\u6700\u5feb\u7684\u63d2\u5165\u5927\u6982\u591a\u4e45\uff1f\u5148\u4e0a\u7ed3\u8bba\uff1a10 \u5206\u949f\u3002<\/p>\n<p>\u6b65\u9aa4\uff1a<\/p>\n<p>\u5efa\u8868\uff1a<\/p>\n<pre><code>CREATE unlogged TABLE  \"test\" (   \"id\" SERIAL PRIMARY KEY NOT NULL,   \"ip\" integer NOT NULL,   \"domain\" varchar DEFAULT 'drawerd.com' ); <\/code><\/pre>\n<p>\u518d\u751f\u6210\u4e00\u4e2a 12.8 \u4ebf\u6761\u8bb0\u5f55\u7684 csv\uff0c\u5927\u6982 41G<\/p>\n<pre><code>f = File.open(\"ii.csv\", \"w\") (1..1280000000).each do |x|   f.puts [x, Random.random_number(1000000000), \"#{x}.com\"].join(\",\") end f.close <\/code><\/pre>\n<p>csv \u6982\u89c8\uff1a<\/p>\n<pre><code>tail -fn20 ii.csv 1279999981,379768240,1279999981.com 1279999982,440776589,1279999982.com 1279999983,194045965,1279999983.com 1279999984,643339201,1279999984.com 1279999985,397295532,1279999985.com 1279999986,308045177,1279999986.com 1279999987,860093304,1279999987.com 1279999988,557636470,1279999988.com 1279999989,882497774,1279999989.com 1279999990,987416658,1279999990.com 1279999991,728315013,1279999991.com 1279999992,163951092,1279999992.com 1279999993,524652,1279999993.com 1279999994,871673632,1279999994.com 1279999995,833545894,1279999995.com 1279999996,635775438,1279999996.com 1279999997,19686670,1279999997.com 1279999998,243310061,1279999998.com 1279999999,706814112,1279999999.com 1280000000,701386384,1280000000.com <\/code><\/pre>\n<p>\u4f7f\u7528timesccaledb-parallel-copy\uff0c\u5f00 8 \u4e2a\u8fdb\u7a0b\uff0cbatch-size \u8bbe\u7f6e\u4e3a 10w\uff0c\u5e76\u53d1 copy \u3002\u4e4b\u524d\u4ee5\u4e3a timesccaledb-parallel-copy \u53ea\u80fd timescaledb \u7528\uff0c\u73b0\u5728\u6d4b\u8bd5\u4e86\u4e00\u4e0b\uff0c\u7eaf pg \u4e5f\u53ef\u4ee5\u7528\u3002<\/p>\n<pre><code>timescaledb-parallel-copy --db-name postgres --table test --file .\/ii.csv --workers 8 --reporting-period 30s -connection \"host=localhost user=postgres password=helloworld sslmode=disable\" -truncate -batch-size 100000 <\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/6167d7f7-c277-447d-ae38-12b90b5affca.pnglarge.png\" alt=\"\u5982\u4f55 10 \u5206\u949f\u5185\u63d2\u5165 13 \u4ebf\u6761\u8bb0\u5f55\uff1f\" \/><\/p>\n<p>\u5982\u679c\u5355\u7eaf\u4f7f\u7528 PG \u7684 copy \u7684\u8bdd\uff0c\u53ea\u662f\u5229\u7528\u5355\u8fdb\u7a0b\uff0c\u4f7f\u7528 imescaledb-parallel-copy \u4f1a\u591a\u8fdb\u7a0b\u540c\u65f6 copy\uff0c\u4ece\u56fe\u4e0a\u53ef\u4ee5\u770b\u5230 CPU \u51e0\u4e4e\u88ab\u8dd1\u6ee1\u3002\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d2 200w \u7684\u5199\u5165\u3002\u5982\u679c\u662f 64 \u6838\u7684\u673a\u5668\uff0c\u53ea\u8981\u4e0d\u5230\u4e24\u5206\u949f\uff0c\u795e\u4e0d\u795e\u5947&#8230;<\/p>\n<pre><code>timescaledb-parallel-copy --db-name postgres --table test --file .\/ii.csv --workers 8 --reporting-period 30s -connection \"host=localhost user=postgres password=helloworld sslmode=disable\" -truncate -batch-size 100000 at 30s, row rate 2049993.13\/sec (period), row rate 2049993.13\/sec (overall), 6.150000E+07 total rows at 1m0s, row rate 1913075.25\/sec (period), row rate 1981529.69\/sec (overall), 1.189000E+08 total rows at 1m30s, row rate 1930261.28\/sec (period), row rate 1964442.55\/sec (overall), 1.768000E+08 total rows at 2m0s, row rate 1943332.35\/sec (period), row rate 1959165.00\/sec (overall), 2.351000E+08 total rows at 2m30s, row rate 1966667.61\/sec (period), row rate 1960665.52\/sec (overall), 2.941000E+08 total rows at 3m0s, row rate 1919998.29\/sec (period), row rate 1953887.65\/sec (overall), 3.517000E+08 total rows at 3m30s, row rate 1950001.96\/sec (period), row rate 1953332.55\/sec (overall), 4.102000E+08 total rows at 4m0s, row rate 1949999.02\/sec (period), row rate 1952915.86\/sec (overall), 4.687000E+08 total rows at 4m30s, row rate 1929999.19\/sec (period), row rate 1950369.56\/sec (overall), 5.266000E+08 total rows at 5m0s, row rate 1873333.69\/sec (period), row rate 1942665.98\/sec (overall), 5.828000E+08 total rows at 5m30s, row rate 1913172.63\/sec (period), row rate 1939984.56\/sec (overall), 6.402000E+08 total rows at 6m0s, row rate 1843488.31\/sec (period), row rate 1931943.89\/sec (overall), 6.955000E+08 total rows at 6m30s, row rate 1816666.49\/sec (period), row rate 1923076.40\/sec (overall), 7.500000E+08 total rows at 7m0s, row rate 1962938.14\/sec (period), row rate 1925924.19\/sec (overall), 8.089000E+08 total rows at 7m30s, row rate 1950394.13\/sec (period), row rate 1927555.19\/sec (overall), 8.674000E+08 total rows at 8m0s, row rate 1963333.08\/sec (period), row rate 1929791.31\/sec (overall), 9.263000E+08 total rows at 8m30s, row rate 1963333.49\/sec (period), row rate 1931764.38\/sec (overall), 9.852000E+08 total rows at 9m0s, row rate 1966666.04\/sec (period), row rate 1933703.36\/sec (overall), 1.044200E+09 total rows at 9m30s, row rate 1963333.35\/sec (period), row rate 1935262.83\/sec (overall), 1.103100E+09 total rows at 10m0s, row rate 1949999.36\/sec (period), row rate 1935999.66\/sec (overall), 1.161600E+09 total rows at 10m30s, row rate 1966667.45\/sec (period), row rate 1937460.03\/sec (overall), 1.220600E+09 total rows at 11m0s, row rate 1933333.38\/sec (period), row rate 1937272.46\/sec (overall), 1.278600E+09 total rows COPY 1280000000 <\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/833cf2d7-c709-4a86-a60c-b2bedcf1a3d6.pnglarge.png\" alt=\"\u5982\u4f55 10 \u5206\u949f\u5185\u63d2\u5165 13 \u4ebf\u6761\u8bb0\u5f55\uff1f\" \/><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>37<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3688047\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ferock <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b66\u4e60\u4e86\uff0c\u611f\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688048\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u8981\u8fd8\u662f ssd \u5389\u5bb3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688049\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mazyi \u522b\u778e\u8bf4 \u4f60\u4e5f\u7528 ssd \u8bd5\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688050\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sunziren <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             six \uff01 six \uff01 six \uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688051\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Numbcoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u70ae\u54e5\u5389\u5bb3\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688052\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u6d4b\u8bd5\u7684\u610f\u4e49\u5e76\u4e0d\u5927\uff0c\u4e0e\u5176\u8bf4\u662f\u6d4b\u8bd5\u5199\u5165 io\uff0c\u5012\u4e0d\u5982\u8bf4\u662f\u5728\u6d4b\u8bd5\u786c\u76d8\u5199\u5165\u901f\u5ea6\uff08\u76f4\u63a5\u603b\u6570\u636e\u5927\u5c0f\u9664\u4ee5\u786c\u76d8\u5e73\u5747\u5199\u5165\u901f\u5ea6\uff09<br \/>\u73b0\u5b9e\u91cc\u7684\u8fd9\u79cd\u89c4\u6a21\u7684\u8868\uff1a<br \/>1\uff0c\u5f80\u5f80\u4e0d\u4f1a\u662f\u81ea\u589e id \uff08\u56e0\u4e3a\u81ea\u589e\u6709\u6781\u9650\u503c\uff09\uff0c\u800c\u662f\u9009\u7528\u65f6\u95f4\u6233\u4f5c\u4e3a\u805a\u96c6\u7d22\u5f15\uff0c\u5199\u5165\u65f6\u5019\u9700\u8981\u8003\u8651\u7ef4\u62a4\u7d22\u5f15\u7684\u5f00\u9500<br \/>2\uff0c\u5f88\u96be\u4f7f\u540c\u6837\u7684\u5757\u5927\u5c0f\uff0c\u73b0\u5b9e\u4e2d\u7684\u5927\u91cf\u6570\u636e\uff0c\u5f80\u5f80\u4e0d\u91c7\u7528\u7b49\u957f\u5927\u5c0f\u5b58\u50a8<br \/>3\uff0cssd \u786c\u76d8\u7684\u6027\u80fd\uff0c\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u5b9e\u73b0\u65b9\u5f0f\uff0c\u6bd4\u5982\u865a\u62df\u673a\u4e0b\u7684 ssd\uff0c\u53ea\u80fd\u7ea6\u7b49\u4e8e\u666e\u901a\u7269\u7406\u673a\u68b0\u786c\u76d8\u7684 io                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688053\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chihiro2014 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\u4e8e\u8fd9\u79cd\uff0c\u78c1\u76d8 IO \u5c31\u662f\u74f6\u9888\u4e86\u5427= =\uff0c\u5185\u5b58\u578b\u5e94\u8be5\u4f1a\u66f4\u5feb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688054\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @opengps <\/p>\n<p>\u81ea\u589e\u6709\u6781\u9650\u503c\u600e\u4e48\u4e86\uff1f\u4f60\u4e86\u89e3\u4e00\u4e0b int8 \u7684\u8303\u56f4\u518d\u6765\u53d1\u8a00\u597d\u4e0d\u597d\uff1f<br \/>\u8bf7\u95ee\uff0c\u76ee\u524d\u6709\u4ec0\u4e48\u65b9\u6848\u5bfc\u5165\u5230\u6570\u636e\u5e93\u7684\u901f\u5ea6\u80fd\u903c\u8fd1\u786c\u76d8\u5199\u5165\u901f\u5ea6\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688055\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liprais <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @opengps postgres \u54ea\u6765\u7684 clustering index ?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688056\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leafre <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54c8\u54c8\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688057\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hooopo \u6ca1\u6709\u6760\u7684\u610f\u601d\u54c8\uff0c\u53ea\u662f\u53d1\u8868\u4e0b\u4e2a\u4eba\u7684\u7406\u89e3\u548c\u8bc4\u8bba<br \/>\u5e94\u7528\u573a\u666f\u4e0d\u540c\uff0c\u5bf9\u4e8e\u8d85\u5927\u6570\u636e\u91cf\u7684\u5e94\u7528\uff0c\u5b9e\u9645\u9879\u76ee\u4e2d\u90fd\u662f\u9700\u8981\u907f\u514d\u4efb\u4f55\u5e26\u6709\u6781\u9650\u503c\u7684\u81ea\u589e id\uff0c\u8fd9\u4e5f\u662f\u51fa\u4e8e\u5bf9\u4e8e\u5c06\u6765\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u7684\u8bbe\u8ba1\u8003\u8651\uff0c\u6211\u6700\u8fd1\u8fd8\u4e00\u4e0d\u5c0f\u5fc3\u56e0\u4e3a\u5bf9\u4e8e\u65e5\u5fd7\u8868\u589e\u957f\u7684\u5ffd\u89c6\uff0c\u5728 sqlserver \u4e2d\u56e0\u4e3a\u81ea\u589e int \u7206\u8868\u4e86\u4e00\u6b21\u3002<br \/>@liprais pg \u6211\u5e76\u4e0d\u719f\u6089\uff0c\u6211\u662f\u57fa\u4e8e\u6211\u5bf9\u5173\u7cfb\u578b\u6570\u636e\u5e93\u5e94\u7528\u7684\u63a8\u65ad                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688058\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @opengps \u522b\u626f\u5206\u5e03\u5f0f snowflake uuid \u5c31\u662f bigint \u7684 \u5206\u5e03\u5f0f\u4e48\uff1f\u4f60\u81ea\u5df1\u7528 int4 \u7206\u8868\u4e86\u662f\u8fde\u8303\u56f4\u90fd\u4e0d\u6e05\u695a\u602a\u8c01\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688059\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hooopo \u597d\u7684\uff0c\u4e0d\u626f\u4e86\uff0c\u7ed9\u4f60\u9020\u6210\u4e0d\u4fbf\uff0c\u3002\u544a\u8f9e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688060\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 030 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u5c31\u662f\u8dd1\u5206\u4ed4\uff1f\u6709\u9c81\u5927\u5e08\u8bc4\u5206\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688061\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @030 \u5565\u53eb\u8dd1\u5206\uff1f\u4f60\u5728 v \u7ad9\u4e0a\u641c\u4e00\u4e0b \u770b\u770b\u5176\u4ed6\u4eba mongo mysql pg \u63d2\u5165\u7684\u901f\u5ea6 \u4f60\u5c31\u77e5\u9053 10 \u5206\u949f 13 \u4ebf\u662f\u4ec0\u4e48\u6c34\u5e73                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688062\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chihiro2014 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @opengps pg \u4e2d\u7684\u90a3\u4e2a\u53eb\u505a clustered index\uff0c\u53eb\u6cd5\u4e0d\u540c\u7f62\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688063\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hooopo \u65e2\u7136\u4f60\u89c9\u5f97\u4e0d\u662f ssd \u5389\u5bb3\uff0c\u90a3\u4f60\u6362\u6210\u673a\u68b0\u786c\u76d8\u4e5f\u8dd1\u4e00\u4e2a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688064\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liprais <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u201cpg \u6211\u5e76\u4e0d\u719f\u6089\uff0c\u6211\u662f\u57fa\u4e8e\u6211\u5bf9\u5173\u7cfb\u578b\u6570\u636e\u5e93\u5e94\u7528\u7684\u63a8\u65ad\u201d<br \/>\u7b11\u6389\u5927\u7259                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688065\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liprais \u8fd9\u54e5\u4eec\u80fd\u81ea\u5df1\u7528 int4 \u4e3b\u952e\u5b58\u65e5\u5fd7\u7206\u4e86\u8868\uff0c\u7136\u540e\u6765\u8fd9\u91cc\u6307\u5bfc\u4e0d\u80fd\u7528\u6709\u6781\u503c\u7684\u7c7b\u578b\uff0c\u4f30\u8ba1\u6ca1\u8dd1\u7206\u8868\u4e4b\u524d\u4e0d\u77e5\u9053 int4 \u8303\u56f4\uff0c\u4e5f\u662f\u9189\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688066\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mazyi \u6211\u6362 USB \u4e5f\u6bd4\u4f60\u8dd1\u7684\u5feb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688067\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aec4d <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63d2\u8fdb\u53bb\u4e86\u67e5\u8be2\u4e5f\u662f\u4e2a\u95ee\u9898&#8230;&#8230;. \u6211\u9009\u62e9\u7528 clickhouse                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688068\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @aec4d ch \u80fd oltp \u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688069\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aec4d <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hooopo \u5f53\u7136\u4e0d\u80fd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688070\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yushiro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u2026\u2026\u4e0d\u5c31\u662f\u5bf9\u5e94 mssql \u7684 bcp \u65b9\u5f0f\u5bfc\u5165\u561b\uff0cbuck copy \u80af\u5b9a\u6bd4\u5355\u6761 insert \u5feb\u3002<br \/>\u5927\u6982 10 \u591a\u5e74\u524d\u5c31\u8fd9\u6837\u6765\u51c6\u5907\u6d4b\u8bd5\u6570\u636e\u4e86\u3002<br \/>\u5f53\u65f6\u7684\u673a\u5668\uff0c\u5355\u7ebf\u7a0b insert \u901f\u5ea6\u5728 1000 \u6761 \/s<br \/>\u7528 bcp \u7684\u65b9\u5f0f\u5bfc\u5165\uff0c\u5feb 2 \u4e2a\u6570\u91cf\u7ea7\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688071\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : namelosw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e48\u5927\u63d2\u5165\u662f\u4e0d\u662f\u53ef\u4ee5\u8003\u8651 Cassandra \u6216\u8005 Kafka \u98ce\u683c\u7684\u90a3\u79cd\u987a\u5e8f\u8bfb\u5199\uff0c\u5f02\u6b65\u7d22\u5f15\u7684\u65b9\u6848\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688072\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yushiro bcp \u53ea\u662f\u751f\u6210\u4e86\u6279\u91cf insert \u8bed\u53e5\u5427\uff0c\u600e\u4e48\u90fd\u4e0d\u5982 pg \u7684 copy \u5feb:https:\/\/programmer.help\/blogs\/data-migration-import-and-export-tests-between-postgresql-and-mssql-sql-server.html                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688073\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @namelosw \u6709\u4ec0\u4e48\u597d\u5904                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688074\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hooopo \u8dd1\u4e0d\u51fa\u5c31\u662f\u8dd1\u4e0d\u51fa\uff0c\u518d\u5f3a\u786c\u7684\u59ff\u6001\u4e5f\u6539\u53d8\u4e0d\u4e86\u4e8b\u5b9e\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688075\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mazyi \u4f60\u5728\u8bf4\u4ec0\u4e48 \u4f60\u662f\u5c0f\u5b66\u751f\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688076\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hooopo \u6ca1\u6709\u5462\uff0c\u5e7c\u513f\u56ed\u5b66\u524d\u73ed\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688077\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mazyi \u597d\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688078\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yanfany <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u4e2a\u7eaf\u6280\u672f\u4ea4\u6d41\u7684\u5e16\u90fd\u80fd\u5435\u8d77\u6765\u3002\u3002\u3002v \u7ad9\u7684\u8ba8\u8bba\u6c1b\u56f4\u6076\u5316                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688079\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : namelosw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @namelosw \u6bd4\u8f83\u7b80\u5355\u628a\uff0c\u53ef\u4ee5\u6bd4\u8f83\u5bb9\u6613\u8fbe\u5230\u786c\u76d8\u7406\u8bba\u6781\u9650\uff0c\u75af\u72c2\u63d2\u5165\u7684\u573a\u666f\u7528\u7684\u3002RDBMS \u7684\u8bbe\u8ba1\u5bfc\u81f4\u4e86\u63d2\u5165\u901f\u5ea6\u6162\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688080\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shyling <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u539f\u95ee\u9898\u662f mysql \u5427\uff0c\u8fd9\u90fd\u6362\u4e86\u51e0\u4e2a\u6570\u636e\u5e93\u4e86=\u3002=<\/p>\n<p>\u4e0d\u77e5\u9053\u6362 rocksdb \u8fd9\u79cd\u57fa\u4e8e lsm \u7684\u5199\u5165\u662f\u4e2a\u4ec0\u4e48\u901f\u5ea6                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688081\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hooopo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shyling \u6362\u4e86\u4e00\u4e2a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yushiro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hooopo \u4e0d\uff0cbcp \u662f\u5bfc\u5165\u5bfc\u51fa mssql \u7684 cli\uff0c\u6570\u636e\u9700\u8981\u4e8b\u5148\u751f\u6210\u7684\uff0c\u8ddf\u4f60\u5199\u7684\u7c7b\u4f3c\uff0c\u5148\u51c6\u5907 csv \u6587\u4ef6\u3002<br \/>\u6211\u89c9\u5f97\u6b64\u9898\u7684\u8981\u70b9\u5c31\u662f\uff0c\u4f60\u6240\u719f\u6089\u7684 dbms \u7cfb\u7edf\uff0c\u6709\u6ca1\u6709\u76f8\u5e94\u7684 buck copy \u5b9e\u73b0\uff0c\u4ee5\u53ca\u4f60\u662f\u5426\u719f\u6089\u8fd9\u79cd\u7528\u6cd5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3688083\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kingsmalltwo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e00\u4e2a\u601d\u8def\uff0c\u5c31\u662f\u76f4\u63a5\u5199\u6570\u636e\u5e93\u8868\u5bf9\u5e94\u7684\u6587\u4ef6\uff0c\u7136\u540e\u91cd\u542f\u670d\u52a1\u52a0\u8f7d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55 10 \u5206\u949f\u5185\u63d2\u5165 13 \u4ebf\u6761&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167023"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167023"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167023\/revisions"}],"predecessor-version":[{"id":167026,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167023\/revisions\/167026"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167023"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}