mongo 配置命令
1.安装 brew install mongodb 2.启动 mongod -config /usr/local/etc/mongod.conf 3.显示数据库列表 show dibs 4.显示当前数据库中的集合(类似关系数据库中的表) show collections 5.显示用户 show users 6.切换当前数据库,这和MS-SQL里面的意思一样 use db name...
View ArticleRethinkDB is dead? Rethink that thought: NoSQL database is back
RethinkDB has bounced back from the passing of its corporate parent last year to land under the protection of The linux Foundation and a more business-friendly software license. The Cloud Native...
View ArticleThe Perils of Building Indexes on MongoDB
Indexes are a critical part of any database operation. Defining the right indexes can make a huge difference to the performance of your database servers. However, creating indexes in MongoDB has...
View ArticleJepsen: MongoDB 3.4.0-rc3
In the past year and a half, MongoDB has put a good deal of work into improved read safety, enabled by the adoption of their new replication protocol and the WiredTiger storage engine. Dirty reads...
View ArticleAzure DocumentDB: Entry point for partitioned collections now 75% cheaper
Today we are pleased to announce that partitioned collections have an entry point 75% cheaper than before. Instead of provisioning 10,100 RU/sec as a minimum, you can now provision a partitioned...
View ArticlePercona Server for MongoDB 3.4.1-1.1 预览版发布
Percona Server for MongoDB 3.4.1-1.1 rc发布了,这是3.4系列的首个预览版。 Percona Server for MongoDB 是一个增强的、开放源代码、完全兼容、高度可扩展、零维护停机时间的数据库,支持 MongoDB v3.4 协议和驱动程序。 它使用 MongoRocks,Percona 内存引擎和 PerconaFT 存储引擎扩展了...
View ArticleRocksDB 5.1.2 发布,key-value 存储系统
RocksDB 5.1.2 发布了。RocksDB 是一个来自 facebook 的可嵌入式的支持持久化的 key-value 存储系统,也可作为 C/S 模式下的存储数据库,但主要目的还是嵌入式。RocksDB 基于LevelDB构建。 更新内容: Public API 更改 支持通过 SetDBOptions()动态更改 delete_obsolete_files_period_micros...
View ArticleRedis操作使用
有同事提出关于Redis的问题,由于自己之前没有使用过,略显尴尬,还好资料多。基本按照同事问题的过程写本文章: 一、问题 查一下某个key redis-cli key '*' |grep key-name #查看redis中是否有这个key #当有这个key查看这个key的值 redis-cli 127.0.0.1:6379> GET key-name 二、设置某个key的值...
View ArticleThinkPHP V5.0.6 发布,完善对 MongoDb 的支持
喜迎元宵佳节,Thinkphp V5.0.6版本发布^_^ ThinkPHP V5.0――为API开发而设计的高性能框架 主要更新 本次更新主要为BUG修正及优化(可无缝升级),由于优化方面的改进,建议升级到该版本: 数据库支持断线重连机制; 改进查询事件的回调参数; 改进数据自动缓存机制; 增加时间字段自动格式转换设置; 完善对MongoDb的支持; 升级指导...
View ArticleMongoDB安装与使用体验
1、获取并安装 具体的安装包可以到官方网站下载: http://www.mongodb.org/downloads 我看着教程就下载了linux版本吧,也不是很复杂。包的体积有点大。 安装过程比较简单,将文件丢到服务器里,然后解压运行./mongod即可。可以参考: http://www.runoob.com/mongodb/mongodb-linux-install.html...
View ArticleDevelop a REST API with Couchbase Ottoman + Node.js + hapi.js
Jose Navarro is a full stack developer at FAMOCO in Brussels, Belgium. He has been working for the last 3 years as a web developer with Node.js, Java, AngularJS, and ReactJS, and has deep interest in...
View ArticleTwilio Engineering with Pat Malatack
Back in 2008, the range of tools that engineers could use to connect computer systems together were getting quite good. Cloud computing was democratizing access to servers. But the telephony ecosystem...
View ArticleHadoop MapReduce Performance Tuning Best Practices
1. Objective This tutorial on Hadoop MapReduce performance tuning best practices that will provide you ways for improving your Hadoop cluster performance and get best result from your programming in...
View Article【高并发简单解决方案】redis队列缓存 + 批量入库 + php离线整合
需求背景:有个 调用统计日志存储和统计需求 ,要求存储到mysql中;存储数据高峰能达到日均千万,瓶颈在于 直接入库并发太高,可能会把mysql干垮 。 问题分析 思考:应用网站架构的衍化过程中,应用最新的框架和工具技术固然是最优选择;但是,如果能在 现有的框架的基础上提出简单可依赖的解决方案 ,未尝不是一种提升自我的尝试。 解决:...
View ArticleSpringMVC使用Redis集群
Redis是现在比较流行的非关系型数据库,同时又支持多种类型的存储结构,所以用来做缓存非常合适。SpringMVC也是现在常用的框架,两者结合使用更加方便。为了保证稳定性,redis最好使用集群方式。但是使用redis集群,也要舍弃一些东西,这个后面再说。 下面就简单说说如何配置使用redis集群: 1. 添加maven <dependency>...
View ArticleHadoop Performance Tuning Best Practices
1. Objective This tutorial on Hadoop performance tuning best practices that will provide you ways for improving your Hadoop cluster performance and get best result from your programming in Hadoop. It...
View Articlehbase.fs.tmp.dir 导致的错误
在执行BulkLoad的时候报了如下的错误: Exceptionin thread "main" java.lang.IllegalArgumentException: Cannot create a Pathfrom a null string atorg.apache.hadoop.fs.Path.checkPathArg(Path.java:122)...
View ArticleYARN Secure Container
In a restricted setup YARN executes task of computation frameworks like Spark in a secured linux or Window Container. The task are being executed in the local user context of the user submitting the...
View Article一次查询性能提高40倍的经历
背景说明 数据库:MongoDB 数据集: A:字段数不定,这里主要用到的两个UID和Date B:三个字段,UID、Date、Actions。其中Actions字段是包含260元素JSON数组,每个JSON对象有6个字段。共有数据800万条左右。 业务场景:求平均数 通过组合条件从A数据表查询出(UID,Date)列表,最多可能包含数万条记录; 然后用第1步的结果从B中查询出对应的数据...
View ArticleGo Data Science with Daniel Whitenack
Data science is typically done by engineers writing code in python, R, or another scripting language. Lots of engineers know these languages, and their ecosystems have great library support. But these...
View Article