摘要: 参考:https://docs.djangoproject.com/en/1.9/intro/tutorial01/1.进到想要的目录,$ sudo django-admin startproject ProjectName2.启动服务器进入到manage.py的目录下$ sudo python m... 阅读全文
posted @ 2016-01-12 19:40 付小同 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1.Question当数据库中多个transactions 同时进行时,会出现问题:1)脏读 dirty read: W-R2)不可重读 unrepeatable read:R-W3)重写 :W-W总结起来,就是只要有transaction在写,并发了另一个transaction就很危险。例子:T1... 阅读全文
posted @ 2016-01-12 11:30 付小同 阅读(835) 评论(0) 推荐(0) 编辑
摘要: optimizer is the core of a DB engine!实际运行计划(physical plan) = 访问方式 ( access method) + join算法 + 执行顺序1.access method1) index scan2) file scan2.join algor... 阅读全文
posted @ 2016-01-12 10:50 付小同 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 数据页可以有两种存储方式:聚类存储(clusterd storage)和非聚类存储(interleaved storage)。一个表有很多属性,索引基于某个属性。例子:att1 att2 att3name2 3 x1name1 4 x5name3 1 x21.有序索引 (sor... 阅读全文
posted @ 2016-01-12 10:25 付小同 阅读(277) 评论(0) 推荐(0) 编辑