久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='R5nwt'></small><noframes id='R5nwt'>

<tfoot id='R5nwt'></tfoot>
  • <i id='R5nwt'><tr id='R5nwt'><dt id='R5nwt'><q id='R5nwt'><span id='R5nwt'><b id='R5nwt'><form id='R5nwt'><ins id='R5nwt'></ins><ul id='R5nwt'></ul><sub id='R5nwt'></sub></form><legend id='R5nwt'></legend><bdo id='R5nwt'><pre id='R5nwt'><center id='R5nwt'></center></pre></bdo></b><th id='R5nwt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='R5nwt'><tfoot id='R5nwt'></tfoot><dl id='R5nwt'><fieldset id='R5nwt'></fieldset></dl></div>

        • <bdo id='R5nwt'></bdo><ul id='R5nwt'></ul>

        <legend id='R5nwt'><style id='R5nwt'><dir id='R5nwt'><q id='R5nwt'></q></dir></style></legend>
      1. Mysql - 歸檔數(shù)據(jù),使用哪種解決方案?

        Mysql - Archiving data, which solution to use?(Mysql - 歸檔數(shù)據(jù),使用哪種解決方案?)

          <small id='gSjKs'></small><noframes id='gSjKs'>

          • <bdo id='gSjKs'></bdo><ul id='gSjKs'></ul>
              <tbody id='gSjKs'></tbody>
              • <i id='gSjKs'><tr id='gSjKs'><dt id='gSjKs'><q id='gSjKs'><span id='gSjKs'><b id='gSjKs'><form id='gSjKs'><ins id='gSjKs'></ins><ul id='gSjKs'></ul><sub id='gSjKs'></sub></form><legend id='gSjKs'></legend><bdo id='gSjKs'><pre id='gSjKs'><center id='gSjKs'></center></pre></bdo></b><th id='gSjKs'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='gSjKs'><tfoot id='gSjKs'></tfoot><dl id='gSjKs'><fieldset id='gSjKs'></fieldset></dl></div>
                <legend id='gSjKs'><style id='gSjKs'><dir id='gSjKs'><q id='gSjKs'></q></dir></style></legend>

                  <tfoot id='gSjKs'></tfoot>

                1. 本文介紹了Mysql - 歸檔數(shù)據(jù),使用哪種解決方案?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我使用的是 MySQL 5.x,有一個(gè)主表包含所有客戶(hù)的統(tǒng)計(jì)數(shù)據(jù).我想對(duì)其運(yùn)行報(bào)告,但不想在同一張表上運(yùn)行它,所以我想每天晚上將數(shù)據(jù)移動(dòng)到僅用于報(bào)告的不同表中.我的問(wèn)題是,為每個(gè)客戶(hù)也有一個(gè)單獨(dú)的表進(jìn)行存檔,還是只為所有客戶(hù)創(chuàng)建一個(gè)存檔表是有益的嗎?系統(tǒng)中可能有數(shù)以千計(jì)的客戶(hù),如果我決定按客戶(hù)將其分解,則可能意味著數(shù)以千計(jì)的存檔表.你的想法?

                  I am using MySQL 5.x and there is one main table that has the stats combined for all customers. I would like to run reporting on it but dont want to run it on the same table so Im thinking of every night moving the data to a different table that will only be used for reporting. My question is would it be beneficial to have a seperate table for each customer to archive too or just have it just one archive table for all customers? There could be thousands of customers in the system which could mean thousands of archive tables if I decide to break it up by customer. Your thoughts?

                  推薦答案

                  如果您為每個(gè)客戶(hù)使用個(gè)人,則表的數(shù)量會(huì)增加.

                  If you use the individual for each customer, tables will grow in number.

                  如果你有統(tǒng)計(jì)數(shù)據(jù),那么我建議像下面這樣總結(jié)

                  If you have statistics data then i suggest to summarize it like below

                  1. 將過(guò)去 1 個(gè)月的數(shù)據(jù)保存在同一個(gè)主表中.
                  2. maintable_quartely 表中的季度數(shù)據(jù)/半年數(shù)據(jù),根據(jù)報(bào)告要求保存平均或匯總數(shù)據(jù)
                  3. maintable_archieve 中的舊數(shù)據(jù),其中包含 > 根據(jù)報(bào)告要求平均或匯總的每季度或半年數(shù)據(jù)

                  如果你想把整個(gè)事情放在一起,你需要組合三個(gè)表.

                  If you want the whole thing together you need to combine three tables.

                  另一種方式,使用mysql復(fù)制和master進(jìn)行insert、update、delete和slave進(jìn)行select

                  other way, use mysql replication and master for insert,update,delete and slave for select

                  這篇關(guān)于Mysql - 歸檔數(shù)據(jù),使用哪種解決方案?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數(shù)根據(jù) N 個(gè)先前值來(lái)決定接下來(lái)的 N 個(gè)行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達(dá)式的結(jié)果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數(shù)的 ignore 選項(xiàng)是忽略整個(gè)事務(wù)還是只是有問(wèn)題的行?) - IT屋-程序員軟件開(kāi)發(fā)技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時(shí)出錯(cuò),使用 for 循環(huán)數(shù)組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調(diào)用 o23.load 時(shí)發(fā)生錯(cuò)誤 沒(méi)有合適的驅(qū)動(dòng)程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數(shù)據(jù)庫(kù)表作為 Spark 數(shù)據(jù)幀讀取?)
                    <tbody id='mv4y4'></tbody>
                2. <small id='mv4y4'></small><noframes id='mv4y4'>

                  1. <i id='mv4y4'><tr id='mv4y4'><dt id='mv4y4'><q id='mv4y4'><span id='mv4y4'><b id='mv4y4'><form id='mv4y4'><ins id='mv4y4'></ins><ul id='mv4y4'></ul><sub id='mv4y4'></sub></form><legend id='mv4y4'></legend><bdo id='mv4y4'><pre id='mv4y4'><center id='mv4y4'></center></pre></bdo></b><th id='mv4y4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='mv4y4'><tfoot id='mv4y4'></tfoot><dl id='mv4y4'><fieldset id='mv4y4'></fieldset></dl></div>
                    <tfoot id='mv4y4'></tfoot>

                      <legend id='mv4y4'><style id='mv4y4'><dir id='mv4y4'><q id='mv4y4'></q></dir></style></legend>

                            <bdo id='mv4y4'></bdo><ul id='mv4y4'></ul>
                          • 主站蜘蛛池模板: 色999视频 | 亚洲精品v | 91精品国产综合久久久久 | 99精品国自产在线 | 欧美日韩黄色一级片 | 日韩中文视频 | 久久久国产一区二区三区四区小说 | 欧美一级视频免费看 | 天天操一操 | 久久夜色精品国产 | 看av网 | 一区二区三区免费 | 国产中文视频 | av大片 | 天天夜夜操 | 久久精品一 | 看片91| 精品久久香蕉国产线看观看亚洲 | 久久久综合网 | 国产成人精品一区二区三区四区 | 99re免费 | 精品欧美一区二区在线观看 | 久操福利 | 精品在线一区 | 日日骚网 | 国产91丝袜在线18 | 亚洲另类春色偷拍在线观看 | 欧美成人一区二区 | 欧美日韩久久 | 99精品久久久久 | www.三级| 国产亚洲精品美女久久久久久久久久 | 欧美一级免费看 | 国外激情av| 欧美性猛片aaaaaaa做受 | 一区二区三区四区日韩 | 久热国产精品视频 | 久久精品亚洲精品国产欧美kt∨ | 日韩伦理一区二区 | 91国产视频在线观看 | 欧美网站一区二区 |