ONgDB批量导入CSV文件
Here’s the table of contents:
版本
cypher-shell执行批量提交的脚本
browser中执行批量提交的CYPHER
版本
ongdb-enterprise-3.5.22
cypher-shell执行批量提交的脚本
USING PERIODIC COMMIT 10000
LOAD CSV FROM 'file:/xbe' AS line
WITH TOINT(line[1]) AS ybId,TOINT(line[2]) AS kwId,apoc.convert.toFloat(line[3]) AS weight
MATCH (yb:研报)-[r:包含]->(kw:关键词) WHERE ID(yb)=ybId AND I...
公司主数据最大连通图分析
Here’s the table of contents:
数据量统计
最大连通图分析脚本
数据量统计
MATCH (n:PREPCODE) RETURN COUNT(*)
465927292
MATCH (n:PREPCODE)-->() RETURN COUNT(*)
965345392
最大连通图分析脚本
CALL algo.unionFind.stream('PREPCODE',NULL,{concurrency:8}) YIELD nodeId,setId
WITH nodeId,setId
WITH COLLECT(nodeId) AS nodeIdList,setId
WITH SIZE(nodeIdList) AS size,nodeIdLis...
Python发起HTTP请求
Here’s the table of contents:
Python - Requests
Python - Requests
import requests
url = "http://10.20.13.200/db/data/transaction/commit"
payload="{\r\n \"statements\": [\r\n {\r\n \"statement\": \"CALL apoc.load.jdbc('jdbc:oracle:thin:nfdp/testlabgogo@nfdpdb-sync-prod.crkldnwly6ki.rds.cn-north-1.alibaba.com.cn:1521/OR...
Shell发起HTTP请求
Here’s the table of contents:
Shell - Httppie
Shell - wget
Shell - curl
Shell - Httppie
printf '{
"statements": [
{
"statement": "CALL apoc.load.jdbc('\''jdbc:oracle:thin:nfdp/testlabgogo@nfdpdb-sync-prod.crkldnwly6ki.rds.cn-north-1.alibaba.com.cn:1521/ORCL'\'', '\''SELECT FUND_HCODE AS \\"hcode\\",CNAME AS \\"cn...
基金产品名称索引设计
Here’s the table of contents:
设计索引
用CYPHER从MySQL拿数据写入ES
设计索引
{
"settings": {
"number_of_replicas": 1,
"number_of_shards": 3,
"refresh_interval": "60s",
"translog": {
"flush_threshold_size": "1.6gb"
},
"merge": {
"scheduler": {
"max_thread_count": "1"
}
},
"index": {
"routin...
图数据库数据写入性能优化
Here’s the table of contents:
现有写入性能测试
优化后写入性能测试
现有写入性能测试
总量
MATCH (n:HEvent) RETURN COUNT(*)
Started streaming 1 records after 1 ms and completed after 1 ms.
更新一千条属性测试
MATCH (n:HEvent) WITH n SKIP 10000 LIMIT 100000
SET n.name=n.name
Set 10000 properties, completed after 3984 ms.
Set 100000 properties, completed afte...
常用CYPHER查询(四)
Here’s the table of contents:
多字段分组聚合
Double类型数字转换
小数比例计算
数组参数访问关系数据库
动态拼接SQL参数批量查询
判断名称中是否包含了名称碎片中的任意一个词
查看是waiting状态的查询
加载DBMS驱动
生成gephi格式文件
时间格式转换函数
从数据库获取小数损失精度问题解决
正则替换
寻找非数值类型数据
批量写入ES
JSON对象转为字符串
时间格式转换
随机数生成
Neo4j中的随机节点匹配
指定Cypher运行时间
时间求差
集合求差集
浮点数处理保留有效位
从列表中删除元素
克隆子图
Louvain模块度算法
三角...
136 post articles, 17 pages.