Loading

摘要: Any changes to a page is first done to the in-memory copy of the page. The page that is modified in memory and not yet flushed to disk is marked as th 阅读全文
posted @ 2020-03-24 20:47 dai.sp 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 聚簇索引 (主键索引)(Clustered Index (Primary Index)) 聚簇索引与其说是索引,不如说是InnoDB用来存储记录的数据容器更为恰当。 InnoDB中的聚簇索引采用B-Tree组织起来,每个节点都是一个Page(InnoDB存储记录的最小单位);非叶节点存 Key 的值 阅读全文
posted @ 2020-03-24 15:08 dai.sp 阅读(1996) 评论(1) 推荐(0) 编辑
摘要: 经常在朋友圈,QQ空间、微博上看到动态的发布时间、评论时间,都显示,昨天,前天,几天前,比起直接显示几月几日几分几秒要优雅的多。 于是自己的项目也想采用这种优雅直观的方式,网上找了各种计算相差几天的的例子,都是直接将时间戳相见除以86400,比如现在是17:08,动态更新的时间为前天22:00,这种 阅读全文
posted @ 2020-03-24 10:38 dai.sp 阅读(1151) 评论(0) 推荐(0) 编辑