自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 资源 (1)
  • 收藏
  • 关注

原创 使用mco_translog_get_info注意的问题

‘mco_translog_get_info’ 可以获取eXtremeDB事务日志的一些信息。但是,有一点需要注意的是,在使用pipe模式向第三方数据库导出数据时,在用户自定义函数‘iteration_proc’中,使用该函数,当pipe buffer 满载的时候,‘mco_translog_get_info’ 会引起‘iteration_proc’阻塞。 这一点在使用的时候需要注意。

2015-09-14 08:21:18 416

原创 mco_trans_log 函数使用注意事项

When a user-defined iteration callback decides to interrupt function mco_translog_iterate() it should return any non-success code. It is preferable to choose some unique code, for example MCO_ERR_LAST

2015-08-24 08:38:27 627

原创 eXtremeDB Log 在多进程是使用注意事项

eXtremeDB Log 在多线程多进程中使用注意事项:1. 在多进程中,每一个进程都需要调用mco_translog_init()函数。该还是初始化一些静态变量,分配内存。当在一个进程中多次调用该函数,不会造成错误,后面调用的会什么都做就返回。2. mco_translog_start()和mco_translog_stop()可以在多个进程或线程中调用,但是只需要调用一次。

2015-08-11 08:45:06 389

原创 auto_oid in Log and HA

在eXtremeDB中,当使用HA和Log组件,我们需要在schema文件中增加“declare auto_oid[]”这样的语句。当加入了该语句后,数据库会在每一个表增加一个字段,auto_oid,该字段是数据库内部自动管理的,对用户是透明的。但是,当用户使用有些接口(如C++,UDA)时,还是会访问到该字段,需要注意。该字段在数据库内部是tpReference类型。

2015-08-02 20:10:28 388

原创 options for pipe mode

Here are a couple of helpful suggestions for pipe mode:·         use the transaction log flag MCO_TRANSLOG_SYNC_INSTANTLY to cause the serialized transaction to be sent to the receiver (iterator

2015-07-12 20:20:19 352

原创 eXtremeDB 中索引字段不能为空

在eXtremeDB中,如果在相关字段上建立了索引,那么该字段不能为空。比如,class table{int4 id;int4 valuetree idx;};那么id的值不能为空,因为在eXtremeDB内部实现中,当索引字段为空,那么该字段会从索引中移除,那么相应的记录就变成了不可访问的,因为它不在tree索引中。这样的规则,不光是对于简单索引有效,

2015-07-05 17:44:32 842

原创 eXtremeDB IM Shared Memory Log PIPE buffer configuration

在eXtremeDB的IM版本中,使用Log的pipe buffer进行Log Iteration 操作时,数据库的dev设备配置如下:#define DATABASE_MAP_ADDRESS (void*)0x200000000 //8GB //#define DATABASE_MAP_ADDRESS (void*)0x20000000#define DB_MEMORY_SI

2015-06-28 17:35:11 368

原创 Problem with transaction log iterate

Question: "mco_translog_iterate" calls a callback function which processes the transaction data passing through the pipe. The callback function signature is MCO_RET (*iteration_callback_proc)(mco_tran

2015-06-14 15:46:29 323

原创 Some Questions about eXtremeDB Log

1. About log, in document "eXtremeDB_Transaction_Logging.pdf", it said "mco_translog_init()" should be called just after "mco_runtime_start()", but if the database is opened using SQL C++ API "engine.

2015-06-06 12:05:22 475

原创 eXtremeDB Compound tree index

在eXtremeDB中,Compound tree Index使用方式。Compound Tree的定义:treeCompound indexes can be used only for exact match searches. More precisely, it is possible using a compound index to execute the followin

2015-05-21 09:05:27 343

原创 "select ... for update" in eXtremeDB

select ... for update语句是我们经常使用手工加锁语句。通常情况下,select语句是不会对数据加锁,妨碍影响其他的DML和DDL操作。同时,在多版本一致读机制的支持下,select语句也不会被其他类型语句所阻碍。借助for update子句,我们可以在应用程序的层面手工实现数据加锁保护操作。 但是很遗憾,在eXtremeDB中,SQL引擎不支持select ... for

2015-05-15 14:29:07 409

原创 xsqlcmd

eXtremeDB是以运行库的形式提供给用户使用,而不是像Oracle,MySQL那样,本身是一个服务器。所以,eXtremeDB在目前在图形工具方面十分欠缺。eXtremeDB包中提供了一个简单的工具xsqlcmd,该工具是一个简单的命令行交互工具,通过SQL对数据库进行简单的操作。xSqlCmdxSqlCmd is a simple command-line utility t

2015-05-10 21:08:38 475

原创 eXtremeDB 在同一事务中数据的可见性

在eXtremeDB中,先来看下面的逻辑,Start Transaction;insert record;select record;Commit Transaction;当insert的数据符合select语句的查询条件,那么,insert 的数据能否在select中显示出来呢?insert的数据在select中是否可见,取决于两个要素,索引和事物管理

2015-04-26 16:41:38 763

原创 在eXtremeDB中,MVCC模式Read Committed隔离级别的问题

场景如下:       1. Insert 100000 records in database.       2. Then to start 2 threads, one thread is traversing the table and at the same time, the other thread is updating database.           

2015-04-19 17:45:09 408

原创 SQL support for dynamic schema

Implementation overvieweXtremeSQL provides limited support for the dynamic database schema. The dynamic schema is implemented using the mcoddl module and requires specifying limits for the maximum n

2015-04-12 09:47:16 689

原创 eXtremeDB SQL Transaction Rellease

First of all, know that Transaction::release() releases the transaction object and related resources allocated by McoSql, but not by the eXtremeDB runtime. So the Transaction::release() method has to

2015-04-06 09:33:13 397

原创 关于eXtremeDB连接问题

在eXtremeDB中,每个线程都需要有自己的连接,并且这个连接在线程中是不能共享的。那么,我们是否可以在主线程中预先建立一个连接池,以供其他线程使用呢?答案是否定的。WRT connection pool: it is important to understand and keep in mind the difference between eXtremeDB and other

2015-03-28 23:45:02 433

转载 eXtremeDB 在电信行业的应用

Lifetree Convergence是印度成长最快的软件公司之一,它为电信服务提供商提供客户管理IT解决方案。Lifetree Convergence公司跟电信创新有很深的根源。它的创始人Richard Siemens,是和黄电讯和Orange UK无线网络的创始人,还有Craig Erlich,是GSM的大会主席。 Lifetree的J@nus结算和信用分类平台运用集中的方法实现

2015-03-22 16:32:16 1171

原创 eXtremeDB打开连接问题

在使用eXtremeDB的时候,正常的逻辑是,先打开数据库,连接数据库,断开连接,关闭数据库。eXtremeDB数据库只用打开一次,并且每个线程都需要拥有自己的连接,为了保证数据的一致性,在关闭数据库前,确保断开所有的数据连接。那么,有这样的一个问题,在一个单进程中,用有多个线程,那么数据库打开和关闭是否需要确保在同一线程中操作呢?这个答案是否定的,我们可以在不同的线程中打开,关闭数据

2015-03-15 12:38:41 398

原创 eXtremeDB 6.0 SAL 库依赖

今天使用eXtremeDB 6.0 的SQL组件的时候,发现了一个链接错误,如下:在windows中:       1>mcoapi.lib(mcosql.obj): error LNK2001: unresolved external symbol mco_sys_free       1>mcoapi.lib(mcosql.obj): error LNK2001: unreso

2015-02-08 16:46:14 435

原创 eXtremeDB 数据库大小定义注意事项

之前在eXtremeDB上做个小测试,在这个测试中,为eXtremeDB分配2G的内存,定义如下#define DATABSE_SIZE 2*1024*1024*1024发现内存分配不成功,经过检查后才知道:上述的定义在宏替换时会默认是int类型,而int类型的表达范围为:-2*1024*1024*1024 ~ 2*1024*1024*1024-1所以导致了内存的分配不成功,正

2015-02-01 11:44:30 442

转载 eXtremeDB - Trigram index

Trigram search is a method of searching for text when the exact syntax or spelling of the target object is not precisely known. It finds objects which match the maximum number of three-character strin

2015-01-25 18:13:51 794

原创 eXtremeDB内存预警机制

eXtremeDB 当内存使用完毕之后,它不保证数据库的使用正确。但是,eXtremeDB提供了内存预警机制,我们可以设置当内存使用到一定的范围时,给用户一个提醒,我们可以通过回调函数做相关的工作。 该函数为mco_register_alloc_callback,请参见相关文档。 例如:mco_register_alloc_callback(m_pclConnCtx->pclSession

2015-01-17 21:41:08 594

原创 eXtremeDB 共享内存使用时的注意事项

When using the eXtremeDB Direct Pointer Arithmetic library (DP) it isnecessary to map the shared memory segment to the same virtual memory addressin every process because in the DP implementation

2015-01-11 20:44:02 588

原创 eXtremeDB 数据类型

2015-01-04 15:17:41 371

原创 内存数据库的比较

这里比较四个内存数据库系统情况,分别是Timesten、AltiBase、ExtremeDB、CacheDB(自研),需要说明的是,这是这段时间的粗略感性认识(并没有经过一段时间的使用,是换不来理性的客观认识) 一、市场与技术支持比较项目市场及应用领域比较排行Timesten全球化,领域全面,金融领域有应用。

2014-10-11 20:17:24 2224

原创 eXtremeDB HA 运行时数据的同步方式

今天这篇文章主要是讲述eXtremeDB HA 在工作的时候,主备机的数据同步策略。在介绍eXtremeDB的同步策略之前,先对HA系统做个简单的说明,以及介绍一下传统的高可用性的机制,以及高可用性(HA)之间同步的常见方式。HA(High Available), 高可用性群集,是保证业务连续性的有效解决方案,一般有两个或两个以上的节点,且分为活动节点及备用节点。通常把正在执行业务的称

2014-08-08 10:32:51 1190

原创 eXtremeDB HA 启动时的同步方式

eXtremeDB的功能组件HA是以

2014-08-01 10:46:09 659

gdb调试技术

gdb调试技术,功能强大,Unix/Linux开发人员必备

2013-08-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除