摘要:
where 及 order by 涉及的列上建立索引。 where子句中使用!=或<>操作符时,会导致引擎放弃使用索引而进行全表扫描。 like ‘%...%’(全模糊)这样的条件,是无法使用索引的,也会导致全表扫描。 where 子句中对字段进行 null 值判断时,会导致引擎放弃使用索引而进行全 阅读全文
摘要:
定义 享元模式(Flyweight Pattern)是池技术的重要实现方式,它可以降低大量重复的、细粒度的类在内存中的开销。英文原话是:Use sharing to support large numbers of fine-grained objects efficiently.意思是:使用共享对 阅读全文
摘要:
定义 外观模式(Facade Pattern)也叫门面模式,是一种比较常用同时也非常简单的设计模式。英文原话是:Provide a unified interface to a set of interfaces in a subsystem.Facade defines a higher-leve 阅读全文