Transaction ResearchHistory and Challenges.ppt
《Transaction ResearchHistory and Challenges.ppt》由会员分享,可在线阅读,更多相关《Transaction ResearchHistory and Challenges.ppt(20页珍藏版)》请在麦多课文档分享上搜索。
1、1,Transaction Research History and Challenges,Jim Gray Microsoft http:/ talk for session on Systems Perspectives on Database Technology; Achievements and Dreams Forgotten ACM SIGMOD 2006, Chicago, Ill, 27 June 2006,Thanks to: Phil Bernstein, Surajit Chaudhuri, Dave DeWitt, Rick Snodgrass, Gerhard We
2、ikum,2,Databases Are State,DB is a collection of facts Store the facts Find the facts Combine the facts to make new ones,3,Transactions are State Changes,And of course these changes are state (facts)my meta data is just your dataIts all rock n roll to me. Its turtles all the way down.,4,Transactions
3、 Have a LONG History,First clay tablets were transaction records General ledger lots of technology there Punched cards Batch (tape) transactions Online (concurrency & durability issues) And now What next? I believe it is back to clay tablets.,Years Before Present Timescale 6000 1000 100 50 25 0,5,“F
4、ormal” Transaction Notion Interesting History,Formalization happened concurrently in many groups: GE, IBM, MIT, Tokyo, Many others saw it as useless Transactions dont give THE right answer, they just give A answer. Heated debate among the “enlightened” “Winner” was wrong, but right at the time.,6,AC
5、ID came to define Transaction “elevator pitch”,Atomicity: All or nothing Consistency: Preserve application invariants Isolation: No concurrency surprises Durability: No commitments lost,Lesson: Simple Story Matters. It is IMPORTANT to get it right.,7,Red-Green Balls Example Whats Wrong With This Pic
6、ture?,A: Change all Red to Green B: Change all Green to Red,Even people who have worked on this for 40 years, still puzzle about things like this. The “answer” is subtle. Probably there is no “answer”. We get to set the rules.,8,The Virtue of Transactions,They are simple Convert complex errors into
7、simple go / no-goSimplifies component composition Simplifies distributed system error handling (especially useful in a “cluster”)Lampson: Transactions are “pixie dust” that you sprinkle on your program to make it reliable.”,9,But Technology Clouded our/my Thinking,Disk & RAM Storage was expensive Ac
8、cesses were expensive So we discarded old values, did update-in-place Makes it easy to find current state possible to find old state from log. But, many applications want data lineage databases dont optimize for that. But now storage is “free”. Keep everything!,Some kept old versions: Prime Codasyl,
9、 Oracle, Rdb, but “garbage collected,10,Restatement It is a Mistake to Update Data,Discards information! You should only ADD information Examples clay tablets, general ledger punched cards Batch processing Old-Master New-Master,11,Correct Solution Temporal Databases,No Update! No Delete! Only Insert
10、 and Read-Time grouped into transactions Every item has time dimension(s) transaction time, valid time, This is BETTER than clay tablets & punched cards (they did not have valid time & transaction time) Same as general ledger References: Bernstein, Hadzilacos, Goodman “transaction” book. Snodgrass e
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- TRANSACTIONRESEARCHHISTORYANDCHALLENGESPPT
