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

表與臨時表性能

Table vs Temp Table Performance(表與臨時表性能)
本文介紹了表與臨時表性能的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

對于數(shù)百萬條記錄,哪個更快:永久表臨時表?

Which is faster for millions of records: Permanent Table or Temp Tables?

我只需要將它用于 1500 萬條記錄.處理完成后,我們刪除這些記錄.

I have to use it only for 15 million records. After processing is complete, we delete these records.

推薦答案

在您的情況下,我們使用稱為臨時表的永久表.這是大型導(dǎo)入的常用方法.事實上,我們通常使用兩個臨時表,一個包含原始數(shù)據(jù),一個包含清理過的數(shù)據(jù),這使得研究提要問題變得更加容易(它們幾乎總是我們的客戶發(fā)現(xiàn)向我們發(fā)送垃圾數(shù)??據(jù)的新方式和不同方式的結(jié)果,但是我們必須能夠證明這一點).此外,您還可以避免諸如必須增加臨時數(shù)據(jù)庫或給想要使用臨時數(shù)據(jù)庫但必須等待它為您增長的其他用戶帶來問題等問題.

In your situation we use a permanent table called a staging table. This is a common method with large imports. In fact we generally use two staging tables one with the raw data and one with the cleaned up data which makes researching issues with the feed easier (they are almost always a result of new and varied ways our clients find to send us junk data, but we have to be able to prove that). Plus you avoid issues like having to grow temp db or causing issues for other users who want to use temp db but have to wait while it grows for you, etc.

您也可以使用 SSIS 并跳過暫存表,但我發(fā)現(xiàn)無需重新加載 50,000,000 表即可返回和研究的能力非常有用.

You can also use SSIS and skip the staging table(s), but I find the ability to go back and research without having to reload a 50,000,000 table is very helpful.

這篇關(guān)于表與臨時表性能的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Sql server table usage statistics(Sql server 表使用情況統(tǒng)計)
Relative path in t sql?(t sql中的相對路徑?)
Getting the last record in SQL in WHERE condition(在 WHERE 條件下獲取 SQL 中的最后一條記錄)
Query to get XML output for hierarchical data using FOR XML PATH in SQL Server(在 SQL Server 中使用 FOR XML PATH 查詢以獲取分層數(shù)據(jù)的 XML 輸出)
T-SQL IF statement embedded in a sum() function(嵌入在 sum() 函數(shù)中的 T-SQL IF 語句)
Can#39;t see created tables in Object Explorer - Microsoft SQL Management Studio(在對象資源管理器中看不到創(chuàng)建的表 - Microsoft SQL Management Studio)
主站蜘蛛池模板: 国产福利视频在线 | 日韩精品大片 | 男女裸体无遮挡做爰 | 亚洲福利片 | 久久成人国产 | 麻豆国产91在线播放 | 久久精品一区二区国产 | 美国式禁忌14在线 | 日韩精品成人 | 天天看片天天爽 | 中文字幕一区二区三区视频 | 亚洲欧美精品一区二区 | 国产精品二区一区二区aⅴ污介绍 | 精品国产91乱码一区二区三区 | 国产欧美日韩综合 | 成人福利视频在线观看 | 久久精彩 | 欧美日韩免费一区二区三区 | 1级黄色大片 | 国产一区免费 | 精品无人国产偷自产在线 | 日韩一区二区三区在线播放 | 久久久香蕉 | 午夜精品福利视频 | 日本在线观看网站 | 久久av在线 | 九色91popny蝌蚪新疆 | 欧美视频在线播放 | 国产福利视频 | 日本一区二区三区在线视频 | 艳妇臀荡乳欲伦交换h漫 | 婷婷狠狠 | 欧美精品在线观看视频 | 麻豆av片 | 另类专区亚洲 | 在线性视频 | 欧美日韩一 | 亚洲黄色三级 | 少妇一级淫片免费放 | 一本伊人 | 欧美国产日韩一区 |