2020年9月15日

Single Number III

摘要: Given an integer array nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements tha 阅读全文

posted @ 2020-09-15 22:18 wsw_seu 阅读(58) 评论(0) 推荐(0) 编辑

innodb中的锁

摘要: 一、锁的对象 InnoDb的行级锁是基于索引实现的,即枷锁的对象是索引而非具体数据。当加操作使用聚集索引时 ,Innodb会锁住聚集索引;而使用非聚集索引时,innodb会先锁住非主键索引,再锁定非聚集索引锁对应的聚集索引。 行级锁的加锁条件必须有对应的索引项,否则会退化为表级锁。 二、共享锁 共享 阅读全文

posted @ 2020-09-15 20:12 wsw_seu 阅读(283) 评论(1) 推荐(0) 编辑

导航