extremedb同步mysql_eXtremeDB相关问题解答(3)

extremedb同步mysql_eXtremeDB相关问题解答(3)1 Couldourdata databaseunde 2 Couldwesuppo 3 Couldwesuppo 4 Couldwesuppo 5 CouldeXtr

1. Could our database support multi-database under one single instance? 2. Could we support temporary table? 3. Could we support view? 4. Could we support stored procedure and functions? 5. Could eXtremeDB be integrated into BI app like Mi

> 1. Could our database support multi-database under one single instance?

>

> 2. Could we support temporary table?

>

> 3. Could we support view?

>

> 4. Could we support stored procedure and functions?

>

> 5. Could eXtremeDB be integrated into BI app like Microstrategy ?

>

> 6. Could we support Architeture like MPP so that all the data could be distributed onto different nodes evenly.

>

> 7. What is the average compression ratio or ratio range typically ? Could we reach the ratio of 10:1

1. Yes, eXtremeDB can open and maintain connections to multiple databases from a single task or process. Each database will require its own “database connection” (the database connection is a way to identify the database to the application)

2. The eXtremeDB databases are normally defined statically with the schema. eXtremeDB does not support temporary tables in the normal SQL meaning of the word (tables that exist within a session). That’s said, there is a limited support for “create table” statement to create in memory tables (or persistent tables. The in-mmeory tables created via the create statement will only exists during the current session, so essentially they are the same as “normal” temporary tables

3. There is a limited support for views (see the eXtremeSQL User’s Guide)

In order to create a view , the application must have the “Views” class defined in the schema:

class Views

{

string name;

string body;

treepk;

};

Only the name of the table and the names of fields are essential. “name” contains the name of the view and the body contains the text of view expression.

View are created in standard SQL manner:

CREATE VIEW name AS select-expression;

XSQL>create view SV as select sid from S; insert into S (sid,sname)

XSQL>values (1,1); select * from SV;

sid

——————————————————————————

1

XSQL>drop view SV;

Things to be aware about

a. Views are implemented as nested select so the query above will be translated to

select * from (select sid from S);

The xsql optimizer is not always smart enough to efficiently transform nested queries. So sometimes query with views will be less efficient than one written manually without views. I can not give you precise example now or give you some estimation how much presence of view can degrade performance of query.

b. The information about created views is stored in Views table. If you want view definition to be persistent , you should define table Views as “persistent”. Certainly it is relevant for disk database only.

c. Views are read-only. Updateable views are not supported. It means it is not possible to do something like:

insert into SV (sid) values (1);

4. Storage procedures are not supported since the eXtremeDB is an embedded database as opposed to a server-type database. SQL Support for functions in SQL is limited to the API — functions are not stored. SQL supports a number of built-in string and math functions as well as user-defined functions that can be used in SQL statements. For example

static String* dateformat( McoSql::Value* date) { char str[64]; int date_val = (int)date->intValue(); int yy = date_val / 10000; int mm = date_val / 100 % 100; int dd = date_val % 100; // Format dd.mm.yyyy assuming all dates are after 2000 eXtremeSQL User Guide version 4.5 page 33

sprintf( str, “%d.%d.20%02d”, dd, mm, yy ); return String::create( str ); } static SqlFunctionDeclaration udf( tpString, // tpInt is the return value of the UDF “dateformat”, // the name of the function as we’ll use it in a query (void*)dateformat, // the function pointer

1 // the number of arguments to the UDF ); The UDF can then be called in a normal SQL select statement. For example, the following statement formats the date values in the result set by calling the UDF:

select dateformat(date_val) from Contributions;

5. There is currently no integration between the eXtremeDB data source and MicroStrategy BI environment. However we are considering the integration of the FE with a number of platforms, including the MicroStrategy Intelligence Server

6. Again, sharding (as a tool within the MPP database architecture) is not currently supported. We are in the process adding sharding and will be happy to consider requirements

7. Compression is supported for the large data data sets (sequences) through RLE. Its not possible to quantify the compression rate as not depends on the data being compressed. By the same token there is no “typical” compression rate.

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/206544.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月19日 下午3:27
下一篇 2026年3月19日 下午3:28


相关推荐

  • asp.net面试题

    asp.net面试题ASP.NET常见面试题及答案(130题)1.简述private、protected、public、internal修饰符的访问权限。答.private:私有成员,在类的内部才可

    2022年7月1日
    28
  • Windows下LaTeX安装教程[通俗易懂]

    Windows下LaTeX安装教程[通俗易懂]文章目录一、前言二、TeXLive下载三、WinEdt下载四、感谢一、前言LaTeX在Windows、Mac、Linux三个系统都具有发行版,而且版本也比较多,比如TeXLive、CTeX、MacTeX、MikTex等。本章中则主要介绍Windows下最常用的LaTeX安装方案,就是TeXLive+WinEdt。TeXLive是LaTeX的运行环境,而WinEdt则是编写LaTeX文…

    2022年4月27日
    209
  • win11安装 OpenClaw 完整搭建安装指南:从新手到专家教程

    win11安装 OpenClaw 完整搭建安装指南:从新手到专家教程

    2026年3月12日
    2
  • js二维码生成

    详细介绍可以查看API网站:http://code.ciaoca.com/javascript/qrcode/ (前端开发仓库)一、引入js文件<!– 第一步:引进js文件 –> <script type=”text/javascript” src=”js/jquery.min.js”> \ <script type=”text/java…

    2021年11月30日
    51
  • scrum 和敏捷介绍(概念、流程、自己的理解)

    scrum 和敏捷介绍(概念、流程、自己的理解)本文介绍 scrum 框架 基于自己的理解 有些可能不够准确 请评论反馈 scrum 是敏捷中的一种 比较出名的一种 但并不是所有 scrum 的规模是比较小的 通常都是小团队 10 人内的很多公司可能实行的是 scrum 的变种 在流程 人员上稍作改变 敏捷的英文叫 Agile scrum 只是其中一种小团队的 一般 10 人以下 更大规模的叫 SAFe 上百上千 敏捷 常常会跟软件开发的瀑布模型 waterfall 来进行比较 ProductOwner PO 一般翻译为产品经理 直译是 产品所有人 对 productbac

    2026年3月16日
    2
  • 如何彻底卸载MySQL

    如何彻底卸载MySQL

    2021年8月28日
    53

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号