文章分类 -  NOSQL

摘要:mongodb开启事务支持 参考:https://blog.csdn.net/liuty66/article/details/126610914 问题定位经过查阅,发现当MongoDB为单例运行时是无法完成回滚操作的,只有在开启副本集的时候才能使用。 解决方案Mongodb配置文件replicati 阅读全文
posted @ 2023-03-17 10:51 飞鹰之歌 阅读(67) 评论(0) 推荐(0)
摘要:我们使用admin数据库进行设置: use admin 可以看一下当前有哪些用户: db.system.users.find() 如果需要删除所有的用户,可以直接这样做: db.system.users.remove({}) 如果需要删除个某个指定的用户,可以这样做: db.system.users 阅读全文
posted @ 2023-03-04 16:14 飞鹰之歌 阅读(119) 评论(0) 推荐(0)
摘要:mongodb批量update更新数据 参考:https://blog.csdn.net/weixin_44282947/article/details/118583626 增删改查:https://www.cnblogs.com/dalianpai/p/12030426.html 更新单篇文档 d 阅读全文
posted @ 2022-07-06 10:00 飞鹰之歌 阅读(2017) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/lovehouye/article/details/83505691 https://blog.csdn.net/qq_37503890/article/details/101382876 neo4j清空所有节点和关系命令如下: MATCH (n) 阅读全文
posted @ 2022-03-29 11:52 飞鹰之歌 阅读(509) 评论(0) 推荐(0)
摘要:https://github.com/graphaware/neo4j-php-client composer require "graphaware/neo4j-php-client:^4.0" 1 <?php 2 3 require_once 'vendor/autoload.php'; 4 5 阅读全文
posted @ 2022-03-29 09:54 飞鹰之歌 阅读(189) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/mzyn22/p/11098285.html 一、添加操作 1. 添加节点: create (x:学生{studentId:'1001',age:20} 2. 添加关系: 对现有的节点添加关系 match (x:学生{studentId:1001 阅读全文
posted @ 2022-03-24 11:18 飞鹰之歌 阅读(2995) 评论(0) 推荐(0)
摘要:参考:https://cloud.tencent.com/developer/article/1733119 1、创建节点 CREATE (n:Person{name:‘ZJ’,title:‘Developer’}) return n; 2、创建一条边(一个关系) match (n:Person{n 阅读全文
posted @ 2022-03-23 17:51 飞鹰之歌 阅读(56) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/u010503427/article/details/81665991 1、首先创建mapping PUT test{ "mappings": { "test":{ "properties": { "location":{ "type": "geo_ 阅读全文
posted @ 2021-08-16 11:30 飞鹰之歌 阅读(309) 评论(0) 推荐(0)
摘要:redis 虽好,却是个吃内存兽,因此在写入 redis 数据时,应该避免写入无用的数据,浪费内存。如果我们要分析哪些 key 占用了大量的存储空间,就需要有工具辅助对所有的 value 所点空间进行排序,如此才能有的放矢进行优化redis-rdb-tools 可以将所有 key 对应的 value 阅读全文
posted @ 2020-04-08 17:22 飞鹰之歌 阅读(12953) 评论(0) 推荐(1)
摘要:1、修改要索引的表结构数据ALTER TABLE `table_name`ADD COLUMN `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',2、在log 阅读全文
posted @ 2018-11-16 09:23 飞鹰之歌 阅读(497) 评论(0) 推荐(0)
摘要:描述:获取有关指定键的值参数:key返回值:string或BOOL 如果键不存在,则返回 FALSE。否则,返回指定键对应的value值。范例: <?php $redis = new redis(); $redis->connect('127.0.0.1', 6379); $result = $re 阅读全文
posted @ 2017-06-23 09:27 飞鹰之歌 阅读(94) 评论(0) 推荐(0)
摘要:* memcached是怎么工作的? * memcached最大的优势是什么? * memcached和MySQL的query cache相比,有什么优缺点? * memcached和服务器的local cache(比如PHP的APC、mmap文件等)相比,有什么优缺点? * memcached的c 阅读全文
posted @ 2017-06-06 15:54 飞鹰之歌 阅读(148) 评论(0) 推荐(0)
摘要:>>Memcached Memcached的优点:Memcached可以利用多核优势,单实例吞吐量极高,可以达到几十万QPS(取决于key、value的字节大小以及服务器硬件性能,日常环境中QPS高峰大约在4-6w左右)。适用于最大程度扛量。支持直接配置为session handle。Memcach 阅读全文
posted @ 2017-06-05 17:40 飞鹰之歌 阅读(102) 评论(0) 推荐(0)