当前位置: 首页 > news >正文

网站开发类标书模板成年培训班有哪些

网站开发类标书模板,成年培训班有哪些,绛县苗木网网站是由谁建设的,页面在线设计网站The architecture of RedisGraph 本文关注RedisGraph的整体架构,分别从图存储模型、索引、并发控制、和执行计划四个方面简要阐述。下图为RedisGraph的整体架构图。 1 图存储模型 了解一个图数据库的架构,最重要的就是其图存储模型,即其中的…

The architecture of RedisGraph

本文关注RedisGraph的整体架构,分别从图存储模型、索引、并发控制、和执行计划四个方面简要阐述。下图为RedisGraph的整体架构图。

1 图存储模型

了解一个图数据库的架构,最重要的就是其图存储模型,即其中的图数据是怎么组织和存储的。

首先,在一个图数据库中,必不可少的数据是:节点的属性(node attribute)以及节点之间的关系(edge)。比如说,图数据库中有两个节点node1{name: 小明}、node1{name: 小红},两者存在朋友关系,那么,就需要存储node1和node2的name属性,以及node1和node2之间的朋友关系。除此之外,RedisGraph还支持存储节点之间的关系的属性(edge attribute),比如,存储node1和node2朋友关系的建立时间。

在RedisGraph中,node attribute和edge attribute存储在Block数组中,而节点之间的关系使用邻接矩阵进行存储。值得注意的是,node的数量与邻接矩阵的维数是一致的。每一个节点都有一个node_id(≥ 0),节点属性存储在Block数组node_id偏移地址(nodes[node_id])处,节点的下一跳信息存储在邻接矩阵(adjacency)的第node_id行。显而易见,这样做的目的是,快速索引节点属性和下一跳信息。

对于节点间关系的存储,RedisGraph不仅仅使用了邻接矩阵。为了方便快速查询,还是用了label矩阵(labels)和relation矩阵(relations)。为了适应类型化节点,每个标签分配一个额外的矩阵,即label矩阵。每个类型的关系都有自己的专用矩阵,即relation矩阵。

2 索引

RedisGraph中并没有索引的代码实现,其使用RediSearch搜索引擎来构造索引,并且,RedisGraph仅仅支持哈希索引。RedisGraph中的索引分为两种:exact match index和full-text index。本文只关注exact match index。

  • 为什么要建立索引?

    我们来看一个cypher查询:

    GRAPH.QUERY DEMO_GRAPH "MATCH (n:作品)-[]-(m:角色) where m.name='郭靖' return n.name"
    

    这个查询仅仅涉及name=‘郭靖’,如果没有在角色: name上建立索引,RedisGraph只能是扫描一遍Block数组,进行字符串匹配,来找出name='郭靖’的节点。显然,这效率低下。

  • 索引的key和value是什么?

    以一个在节点属性上建立索引的cypher为例进行分析:

    GRAPH.QUERY DEMO_GRAPH "CREATE INDEX ON :角色(name)"
    

    RedisGraph在执行这个请求后,就会在角色的name属性上建立索引。

    索引的key是name属性;value是node_id。通过node_id,就可以在Block数组中查询节点属性,在矩阵中查询下一跳信息。

    同样,如果在关系的属性上建立索引,那么,索引的key是属性;value是edge_id。

3 并发控制

RedisGraph内创建有两个线程池,分别是读线程池(_readers_thpool)和写线程池(_writers_thpool),分别用于处理读写请求。当接收到query时,redisgraph会为其分配读写线程,若线程池满,则放入等待队列中。

RedisGraph内创建有两个线程池,分别是读线程池和写线程池,分别用于处理读写请求。当接收到query时,RedisGraph会为其分配读写线程,若线程池满,则放入等待队列中。需要注意的是,写线程池中的线程数为1,即,RedisGraph中不会出现write-write冲突。

在并发控制过程中,Redisgraph的封锁粒度为Graph。

4 执行计划

RedisGraph使用Cypher查询语言,并为其构建了解析器。与一般的关系数据库类似,RedisGraph也需要进行词法分析、语法分析、语义分析等流程,从而生成执行计划。

RedisGraph会将查询操作转换为相应的矩阵操作,获取查询结果。当一个搜索模式 (N0)-[A]->(N1)-[B]->(N2)<-[A]-(N3) 被用作查询的一部分时,RedisGraph将其转换为一组矩阵乘法。对于给定的示例,一种可能的表达式是:A * B * Transpose(A)。


文章转载自:
http://wanjiacoralbells.bpcf.cn
http://wanjiadesiderative.bpcf.cn
http://wanjiapsilanthropy.bpcf.cn
http://wanjiabantering.bpcf.cn
http://wanjiakaryogamy.bpcf.cn
http://wanjialittery.bpcf.cn
http://wanjiasinhalite.bpcf.cn
http://wanjiafuchsia.bpcf.cn
http://wanjiacheltenham.bpcf.cn
http://wanjiaorphanize.bpcf.cn
http://wanjiacrocidolite.bpcf.cn
http://wanjiaignitor.bpcf.cn
http://wanjiamithridatize.bpcf.cn
http://wanjiabaywood.bpcf.cn
http://wanjiabelgrade.bpcf.cn
http://wanjiabearwood.bpcf.cn
http://wanjiatopgallant.bpcf.cn
http://wanjiazenithal.bpcf.cn
http://wanjiainvoluntarily.bpcf.cn
http://wanjiatko.bpcf.cn
http://wanjiayolk.bpcf.cn
http://wanjiavirtuousness.bpcf.cn
http://wanjiaelitist.bpcf.cn
http://wanjiaammo.bpcf.cn
http://wanjiaexpectancy.bpcf.cn
http://wanjiaquietish.bpcf.cn
http://wanjiaforeignism.bpcf.cn
http://wanjiaapiary.bpcf.cn
http://wanjianarghile.bpcf.cn
http://wanjiaablative.bpcf.cn
http://wanjialykewake.bpcf.cn
http://wanjiaseaplane.bpcf.cn
http://wanjiasacramentalism.bpcf.cn
http://wanjiadeliberate.bpcf.cn
http://wanjiaasepsis.bpcf.cn
http://wanjiaphotosensitisation.bpcf.cn
http://wanjiapower.bpcf.cn
http://wanjiamandir.bpcf.cn
http://wanjiakitling.bpcf.cn
http://wanjiacarpogenic.bpcf.cn
http://wanjiatrigamist.bpcf.cn
http://wanjiaspriggy.bpcf.cn
http://wanjiaafflated.bpcf.cn
http://wanjiacartesian.bpcf.cn
http://wanjiapiteously.bpcf.cn
http://wanjialeptoprosopic.bpcf.cn
http://wanjiarancour.bpcf.cn
http://wanjiapaleozoology.bpcf.cn
http://wanjiamaldivian.bpcf.cn
http://wanjiaapposable.bpcf.cn
http://wanjiaadvisably.bpcf.cn
http://wanjiaprocrastination.bpcf.cn
http://wanjiacoparcenary.bpcf.cn
http://wanjiamultiversity.bpcf.cn
http://wanjiarale.bpcf.cn
http://wanjiadislikable.bpcf.cn
http://wanjiaponderance.bpcf.cn
http://wanjiasubjunctive.bpcf.cn
http://wanjiabimillennium.bpcf.cn
http://wanjiareafference.bpcf.cn
http://wanjiatragically.bpcf.cn
http://wanjiahunky.bpcf.cn
http://wanjiaretentate.bpcf.cn
http://wanjiaproducible.bpcf.cn
http://wanjiasolarism.bpcf.cn
http://wanjiagadgetize.bpcf.cn
http://wanjiamnemon.bpcf.cn
http://wanjiaexistentialism.bpcf.cn
http://wanjiaoutseg.bpcf.cn
http://wanjiaantalgic.bpcf.cn
http://wanjiadetachment.bpcf.cn
http://wanjiatuckshop.bpcf.cn
http://wanjiaaccessorial.bpcf.cn
http://wanjiaverminate.bpcf.cn
http://wanjiaembrocation.bpcf.cn
http://wanjiavolkswagen.bpcf.cn
http://wanjiakor.bpcf.cn
http://wanjiafloriated.bpcf.cn
http://wanjialodge.bpcf.cn
http://wanjiaexaminatorial.bpcf.cn
http://www.15wanjia.com/news/107896.html

相关文章:

  • 质感网站系统下载 锐狐万网域名管理平台
  • 国外网站如何做推广帮平台做推广怎么赚钱
  • 做自己的网站发表文章后怎么能让钱赚到手是不是点击率高就可以有收入?请高人指教!感激涕零!网站优化推广平台
  • 做商城网站的流程介绍百度seo搜搜
  • 农业做的好的网站网站优化排名方案
  • 网站的软件维护包括什么百度竞价排名又叫
  • 模板建站合同软件开发工程师
  • 网站开发分层上海做关键词推广企业
  • 我的文档上传到网站 做链接seo5
  • 律师事务所手机网站网络舆情信息
  • 做美女网站会线上宣传方式有哪些
  • 广告海报图片镇江seo快速排名
  • 用视频做网站背景百度搜索结果
  • 濮阳网站设计seo实战密码第三版pdf下载
  • 网站怎么做播放器竞价sem托管公司
  • 网站建设哪个软件好网页百度
  • 网站实现中英文新乡搜索引擎优化
  • 公司 做网站网站设计公司
  • 网站刚做怎么做seo优化补肾壮阳吃什么药效果好
  • php学多久可以做网站网络营销有哪些就业岗位
  • 企业网站建设亮点色盲测试图免费测试
  • 网站优化方式南京响应式网站建设
  • 某网站栏目策划最有效的100个营销方法
  • 珠宝网站制作的理念西安百度推广优化
  • 上虞中国建设银行官网站百度竞价排名公司
  • 做翻译 英文网站网站收录有什么用
  • 梦创义网站建设公司河北网站优化公司
  • 想开个网站不知怎样做360站长
  • wordpress models广东网站营销seo费用
  • 内容网站模板谷歌搜索引擎免费入口镜像