The database manager determines which locks to escalate by looking through the lock list for the application and finding the table with the most row locks.
数据库管理器通过查看应用程序的锁列表并查找行锁最多的表,来决定对哪些锁进行升级。
To be fair, finding the list of documents that contain the keywords is the easy part, while ranking techniques still involve a lot of black magic and secret evaluation formulas.
公正地说,查找包含关键字的文档列表是件很容易的事情,但是,排序技术却涉及到很多未知的技术和深奥的计算公式。
Consider the task of finding the maximum value in a list.
以查找列表中最大值的任务为例。
I'll let you just grok it but you can see it's basically doing what I did over there. Setting up two indices for the two sub-list,it's just walking down, finding the smallest element, putting it into a new list. When it gets to the end of one of the lists, it skips to the next part, and only one of these two pieces will get called because only one of them is going to have things leftovers.
你们可以大体的浏览一下,但是它们基本就是我在那里所做的事情,为两个子列表设置了两个指针,指针顺着列表走下去,找到最小的元素,把它放入到一个新的列表中去,当它走到一个列表的尾部时,它会跳到下部分去,两部分中只有一个会被执行,因为只有一个会有元素剩余。
应用推荐