停止空想

老张的空中之家

存档于 ‘数据库’ 分类

什么是上下文切换

作者:admin 发表时间:二月 - 3 - 2007

context switches 


在英文原版书上经常看到这个名词,特别找到解释来解释一下。


An operating system running a program runs in either user mode or operating system mode. Switching between user and operating system mode is a context switch. For example, a program that makes a system call while in user mode makes a context switch. Context switches can hinder performance because, in this example, the context of the user program must be stored while also transferring the context of the operating system kernel into memory. Performance can be even more adversely affected when multiple system calls compete for operating system resources.

Popularity: 35% [?]

类别:Oracle

关于Oracle的Logical Rowid

作者:admin 发表时间:一月 - 8 - 2007

原来曾经看过iot方面的书,今天再次读到logical rowid ,竟然怎么也不明白了。于是留下点笔墨,以增强记忆。


logical rowid之前,首先要明确一个概念。

IOT中,因为数据是存放在index中的,所以并不像常规表那样一行存放的位置始终不变。因此,对于常规表中的一行而言,有固定的位置,可以用physical rowid 来定位;而iot的数据存放在index中,由于index的特性,比如相同的pk值插入的多了,该叶节点需要split;比如该行的pk值变化了,该行就会被重新插入到对应的pk值所在的叶节点的位置。因此上面两种情况,都会造成一行存放的物理位置的变化。所以固定的rowid就无法正确的代表一行。

oracle为了解决这个问题,就采用logical rowid的方法。

阅读全文 »

Popularity: 27% [?]

类别:Oracle

为什么要减少soft parse的使用?

作者:admin 发表时间:八月 - 13 - 2006

今天跟一个网友讨论了这个话题,加上以前的笔记大概整理出了一个脉络,其间参考了不少资料,看了半天的外文,这里跟大家分享,省得大家看E文头晕了 呵呵

     嗯,嗯 今天没有白忙啊……  

 什么叫soft parse? hard parse?

You Asked (Jump to Tom’s latest followup)

 

Hi Tom

 

Can you explain briefly the difference between soft and hard parse?

 

cheers

and we said…

阅读全文 »

Popularity: 30% [?]

类别:Oracle