class table1

{

char<8>    f1;

char<80>  f2;

uint4        f3;

uint4        f4;

double     f5;

uint4        f6;

uniquetree<f1,f2> Idx1;

tree<f6>Idx2;

};

Steps:

step1:find(Idx1=(a,b)),find
the records;

step2:put(f6,c);

step3:find(Idx1=(a。b))。did
not find the record instep 1.

The record should be there, what happened when the putmethod is used, the index is changed after _put method?

If a class has one or more indexes, thenthe field(s) on which the index is defined

will have an index component (hash tableentry or tree node) in addition to the

actual field value. The index component isnot updated when the field’s _put()

function is called, but rather when theREAD_WRITE transaction containing this

update is committed. Or, alternatively, a_checkpoint() function can be called

to explicitly update the index componentsfor this object. The _checkpoint()

function completes the object’s update before the transaction is committed,

however if the application decides to rollback the current transaction, all the

updates for the object including indexcomponents are discarded. (Committing a

transaction implicitly checkpoints all theobjects created, updated or deleted in the

transaction.)

Updating f6causes the object to be removed from all indexes.  Using _checkpoint()after _put() is the correct approach.

最新文章

  1. Hibernate增删查改语句
  2. Opencv摄像头实时人脸识别
  3. 自定义控件之圆形的image
  4. 001.mysql安装(lnmp)
  5. [Scala] 快学Scala A3L3
  6. 关于xfce中桌面没法显示回收站以及thunar中无法进行卷管理的解决办法
  7. EXT学习之——获取下拉框combobox的值与显示名
  8. linux c程序中获取shell脚本输出的实现方法
  9. php三维数组变二维数组
  10. think in java 读书笔记 2 —— 套接字
  11. eclipse中异常的快捷键
  12. poj2079
  13. Debug your C# project more efficiently
  14. fragment的实现与互相通信
  15. (转) 学习C++ -&gt; 指针初步
  16. WPF之路五:wpf 隐藏与显示 Visibility
  17. 【转】Java线程面试题 Top 50
  18. ubuntu下安装PyCharm的两种方式
  19. Saiku资源帖
  20. java内存模型和垃圾回收(收藏)

热门文章

  1. OSI概述问答
  2. FFT&amp;NTT学习笔记
  3. javaweb集成swagger
  4. [terry笔记]ogg_迁移同步实验_零停机
  5. 洛谷 P2183 巧克力
  6. 国庆 day 3 上午
  7. zookeeper 安装笔记 3.6.7
  8. java实现上传图片
  9. Dynamics CRM2013 Form利用window.location.reload()进行全局刷新带来的问题及解决的方法
  10. [poj 3904] sky code 解题报告(组合计算+容斥原理)