如果小的table需要经常进行全表扫描,那么可以将它放在Keep池中。具体的方法是:
alter table table_name storage(buffer_pool keep) ;
[@more@]
不过在数据库重新启动后,要重新执行一次alter table t storage(buffer_pool keep),表t才会cache到db_keep_cache_size 。可以做触发器来避免每次重启时的人为操作。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-1007037/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-1007037/