pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <i id='25wEu'><tr id='25wEu'><dt id='25wEu'><q id='25wEu'><span id='25wEu'><b id='25wEu'><form id='25wEu'><ins id='25wEu'></ins><ul id='25wEu'></ul><sub id='25wEu'></sub></form><legend id='25wEu'></legend><bdo id='25wEu'><pre id='25wEu'><center id='25wEu'></center></pre></bdo></b><th id='25wEu'></th></span></q></dt></tr></i><div class="iqe2uc2" id='25wEu'><tfoot id='25wEu'></tfoot><dl id='25wEu'><fieldset id='25wEu'></fieldset></dl></div>

    1. <legend id='25wEu'><style id='25wEu'><dir id='25wEu'><q id='25wEu'></q></dir></style></legend>
        <bdo id='25wEu'></bdo><ul id='25wEu'></ul>
      <tfoot id='25wEu'></tfoot>
      1. <small id='25wEu'></small><noframes id='25wEu'>

      2. MySQL 和 Neo4j 一起使用是個好主意嗎?

        Is it a good idea to use MySQL and Neo4j together?(MySQL 和 Neo4j 一起使用是個好主意嗎?)
        <legend id='0Lv4Y'><style id='0Lv4Y'><dir id='0Lv4Y'><q id='0Lv4Y'></q></dir></style></legend>

            <bdo id='0Lv4Y'></bdo><ul id='0Lv4Y'></ul>
            <tfoot id='0Lv4Y'></tfoot>
            1. <i id='0Lv4Y'><tr id='0Lv4Y'><dt id='0Lv4Y'><q id='0Lv4Y'><span id='0Lv4Y'><b id='0Lv4Y'><form id='0Lv4Y'><ins id='0Lv4Y'></ins><ul id='0Lv4Y'></ul><sub id='0Lv4Y'></sub></form><legend id='0Lv4Y'></legend><bdo id='0Lv4Y'><pre id='0Lv4Y'><center id='0Lv4Y'></center></pre></bdo></b><th id='0Lv4Y'></th></span></q></dt></tr></i><div class="e02k2ye" id='0Lv4Y'><tfoot id='0Lv4Y'></tfoot><dl id='0Lv4Y'><fieldset id='0Lv4Y'></fieldset></dl></div>

                    <tbody id='0Lv4Y'></tbody>

                  <small id='0Lv4Y'></small><noframes id='0Lv4Y'>

                  本文介紹了MySQL 和 Neo4j 一起使用是個好主意嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我將創建一個包含大量相似項(數百萬個)的應用程序,并且我想將它們存儲在 MySQL 數據庫中,因為我想進行大量統計并搜索特定列的特定值.

                  I will make an application with a lot of similar items (millions), and I would like to store them in a MySQL database, because I would like to do a lot of statistics and search on specific values for specific columns.

                  但同時,我將存儲所有項之間的關系,這些關系在許多連接的二叉樹狀結構(傳遞閉包)中相關,而關系數據庫不擅長這種結構,所以我會喜歡將所有關系存儲在 Neo4j 中,對此類數據具有良好的性能.

                  But at the same time, I will store relations between all the items, that are related in many connected binary-tree-like structures (transitive closure), and relation databases are not good at that kind of structures, so I would like to store all relations in Neo4j which have good performance for this kind of data.

                  我的計劃是將除了 MySQL 數據庫中的關系和所有與 item_id 的關系存儲在 Neo4j 數據庫中的所有數據.當我想查找一棵樹時,我首先在 Neo4j 中搜索樹中的所有 item_id:s,然后在 MySQL 數據庫中搜索查詢中的所有指定項目,如下所示:

                  My plan is to have all data except the relations in the MySQL database and all relations with item_id stored in the Neo4j database. When I want to lookup a tree, I first search the Neo4j for all the item_id:s in the tree, then I search the MySQL-database for all the specified items in a query that would look like:

                  SELECT * FROM items WHERE item_id = 45 OR item_id = 345435 OR item_id = 343 OR item_id = 78 OR item_id = 4522 OR item_id = 676 OR item_id = 443 OR item_id = 4255 OR item_id

                  SELECT * FROM items WHERE item_id = 45 OR item_id = 345435 OR item_id = 343 OR item_id = 78 OR item_id = 4522 OR item_id = 676 OR item_id = 443 OR item_id = 4255 OR item_id = 4345

                  這是個好主意,還是我錯了?我以前沒有使用過圖形數據庫.有沒有更好的方法來解決我的問題?在這種情況下,MySQL 查詢將如何執行?

                  Is this a good idea, or am I very wrong? I haven't used graph-databases before. Are there any better approaches to my problem? How would the MySQL-query perform in this case?

                  推薦答案

                  對此的一些想法:

                  我會嘗試對您的 Neo4j 域模型進行建模,以在圖中包含每個節點的屬性.通過將您的數據分成兩個不同的數據存儲,您可能會限制您可能想要執行的某些操作.

                  I would try modelling your Neo4j domain model to include the attributes of each node in the graph. By separating your data into two different data stores you might limit some operations that you might want to do.

                  我想這歸結為您將如何處理您的圖表.例如,如果您想查找所有連接到其屬性(即名稱、年齡等)為特定值的特定節點的所有節點,您是否首先必須在 MySQL 數據庫中找到正確的節點 ID,然后進入Neo4j?當您可以在 Neo4j 中完成所有這些時,這看起來很慢且過于復雜.所以問題是:遍歷圖時是否需要節點的屬性?

                  I guess it comes down to what you will be doing with your graph. If, for example, you want to find all the nodes connected to a specific node whose attributes (ie name, age.. whatever) are certain values, would you first have to find the correct node ID in your MySQL database and then go into Neo4j? This just seems slow and overly complicated when you could do all this in Neo4j. So the question is: will you need the attributes of a node when traversing the graph?

                  您的數據會改變還是靜態的?擁有兩個獨立的數據存儲會使事情復雜化.

                  Will your data change or is it static? By having two separate data stores it will complicate matters.

                  雖然使用 MySQL 數據庫生成統計數據可能比在 Neo4j 中做任何事情都容易,但遍歷圖形以查找滿足定義條件的所有節點所需的代碼并不太困難.這些統計數據應該推動您的解決方案.

                  Whilst generating statistics using a MySQL database might be easier than doing everything in Neo4j, the code required to traverse a graph to find all the nodes that meet a defined criteria isn't overly difficult. What these stats are should drive your solution.

                  我無法評論用于選擇節點 ID 的 MySQL 查詢的性能.我想這取決于您需要選擇多少個節點以及您的索引策略.不過,我同意遍歷圖形時的性能方面.

                  I can't comment on the performance of the MySQL query to select node ids. I guess that comes down to how many nodes you will need to select and your indexing strategy. I agree about the performance side of things when it comes to traversing a graph though.

                  這是一篇很好的文章:MySQL vs. Neo4j在大規模圖遍歷中,在這種情況下,當他們說大時,它們僅意味著一百萬個頂點/節點和四百萬條邊.所以它甚至不是一個特別密集的圖.

                  This is a good article on just this: MySQL vs. Neo4j on a Large-Scale Graph Traversal and in this case, when they say large, they only mean a million vertices/nodes and four million edges. So it wasn't even a particularly dense graph.

                  這篇關于MySQL 和 Neo4j 一起使用是個好主意嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)
                  <legend id='QFZKa'><style id='QFZKa'><dir id='QFZKa'><q id='QFZKa'></q></dir></style></legend>

                      <tbody id='QFZKa'></tbody>
                  1. <i id='QFZKa'><tr id='QFZKa'><dt id='QFZKa'><q id='QFZKa'><span id='QFZKa'><b id='QFZKa'><form id='QFZKa'><ins id='QFZKa'></ins><ul id='QFZKa'></ul><sub id='QFZKa'></sub></form><legend id='QFZKa'></legend><bdo id='QFZKa'><pre id='QFZKa'><center id='QFZKa'></center></pre></bdo></b><th id='QFZKa'></th></span></q></dt></tr></i><div class="soumaea" id='QFZKa'><tfoot id='QFZKa'></tfoot><dl id='QFZKa'><fieldset id='QFZKa'></fieldset></dl></div>

                          • <bdo id='QFZKa'></bdo><ul id='QFZKa'></ul>

                            <small id='QFZKa'></small><noframes id='QFZKa'>

                            <tfoot id='QFZKa'></tfoot>
                          • 主站蜘蛛池模板: 蓝鹏测控平台 - 智慧车间系统 - 车间生产数据采集与分析系统 | 智能型高压核相仪-自动开口闪点测试仪-QJ41A电雷管测试仪|上海妙定 | 离子色谱自动进样器-青岛艾力析实验科技有限公司 | 厂厂乐-汇聚海量采购信息的B2B微营销平台-厂厂乐官网 | 河南正规膏药生产厂家-膏药贴牌-膏药代加工-修康药业集团官网 | 升降机-高空作业车租赁-蜘蛛车-曲臂式伸缩臂剪叉式液压升降平台-脚手架-【普雷斯特公司厂家】 | 生态板-实木生态板-生态板厂家-源木原作生态板品牌-深圳市方舟木业有限公司 | 货车视频监控,油管家,货车油管家-淄博世纪锐行电子科技 | 耐力板-PC阳光板-PC板-PC耐力板 - 嘉兴赢创实业有限公司 | 不锈钢水箱厂家,不锈钢保温水箱-山东桑特供水设备 | 飞行者联盟-飞机模拟机_无人机_低空经济_航空技术交流平台 | 网站建设-临朐爱采购-抖音运营-山东兆通网络科技 | 电缆接头_防水接头_电缆防水接头_防水电缆接头_上海闵彬 | 茶楼装修设计_茶馆室内设计效果图_云臻轩茶楼装饰公司 | 铝镁锰板厂家_进口钛锌板_铝镁锰波浪板_铝镁锰墙面板_铝镁锰屋面-杭州军晟金属建筑材料 | 月嫂_保姆_育婴_催乳_母婴护理_产后康复_养老护理-吉祥到家家政 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | 【中联邦】增稠剂_增稠粉_水性增稠剂_涂料增稠剂_工业增稠剂生产厂家 | 杭州货架订做_组合货架公司_货位式货架_贯通式_重型仓储_工厂货架_货架销售厂家_杭州永诚货架有限公司 | 吸音板,隔音板,吸音材料,吸音板价格,声学材料 - 佛山诺声吸音板厂家 | 石油/泥浆/不锈钢防腐/砂泵/抽砂泵/砂砾泵/吸砂泵/压滤机泵 - 专业石油环保专用泵厂家 | 原子吸收设备-国产分光光度计-光谱分光光度计-上海光谱仪器有限公司 | 合景一建-无尘车间设计施工_食品医药洁净车间工程装修总承包公司 | 广域铭岛Geega(际嘉)工业互联网平台-以数字科技引领行业跃迁 | 定制/定做冲锋衣厂家/公司-订做/订制冲锋衣价格/费用-北京圣达信 | 软文发布平台 - 云软媒网络软文直编发布营销推广平台 | 呼末二氧化碳|ETCO2模块采样管_气体干燥管_气体过滤器-湖南纳雄医疗器械有限公司 | 洗石机-移动滚筒式,振动,螺旋,洗矿机-青州冠诚重工机械有限公司 | 洗地机-全自动/手推式洗地机-扫地车厂家_扬子清洁设备 | 奇酷教育-Python培训|UI培训|WEB大前端培训|Unity3D培训|HTML5培训|人工智能培训|JAVA开发的教育品牌 | 风电变桨伺服驱动器-风电偏航变桨系统-深圳众城卓越科技有限公司 | 数字展示在线_数字展示行业门户网站 | 英国公司注册-新加坡公司注册-香港公司开户-离岸公司账户-杭州商标注册-杭州优创企业 | 壹车网 | 第一时间提供新车_资讯_报价_图片_排行! | 企业管理培训,企业培训公开课,企业内训课程,企业培训师 - 名课堂企业管理培训网 | 土壤肥料养分速测仪_测土配方施肥仪_土壤养分检测仪-杭州鸣辉科技有限公司 | 网站建设-网站制作-网站设计-网站开发定制公司-网站SEO优化推广-咏熠软件 | 厂房出租_厂房出售_产业园区招商_工业地产&nbsp;-&nbsp;中工招商网 | 裹包机|裹膜机|缠膜机|绕膜机-上海晏陵智能设备有限公司 | 旅游规划_旅游策划_乡村旅游规划_景区规划设计_旅游规划设计公司-北京绿道联合旅游规划设计有限公司 | 钢格板|热镀锌钢格板|钢格栅板|钢格栅|格栅板-安平县昊泽丝网制品有限公司 | 包装设计公司,产品包装设计|包装制作,包装盒定制厂家-汇包装【官方网站】 |