Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Browsing all 6262 articles
Browse latest View live

MongoDB 2.6.x 清理过大日志文件的方法

一、MongoDB日志清理步骤 1.使用数据库命令rotate日志,分别登陆到mongod和mongos实例上 # mongo --host localhost:27xxx MongoDB shell version: 2.6.x connecting to: localhost:27xxx/test replicaset003:SECONDARY> db test...

View Article


什么是数据的结构化 数据结构 链表 单链表 数据的结构化

数据的结构化,就是让数据彼此之间产生联系,发生关系。 例如链表就是让前一个数据知道自己的前后的数据是什么。 树就是让数据知道自己下一层子孙是谁。 这就是数据的结构化。通过联系有了先后的关系,形成了强关系的集合。 而文件可以看成集合,就是一大堆数据放在里面,当你为文件加了序号就是变成了数据结构,因为序号让他们有了先后的顺序。...

View Article


SQL语句小记 数据库 数据库教程 SQL语句 SQL语句小记

select * from( ---辅营类 select main.date as sale_date, main.flightno as flight_no, main.oridate as flight_date, main.typename as product_type_name, main.typecode as product_type_code, main.name as...

View Article

Image may be NSFW.
Clik here to view.

Q&A: Hortonworks CTO unfolds the big data road map

Hortonworks has built its business on big data and Hadoop, but the Hortonworks Data Platform provides analytics and features support for a range of technologies beyond Hadoop, including MapReduce,...

View Article

Redis源码分析―哈希t_hash

不知不觉,从第一篇写Redis源码分析开始,已经过了快一个月了,想想自己的进度,简直慢的吓人啊,这样下去不行,后面得加快脚步了。今天分析的是Redis的又一个数据类型―哈希,哈希键的底层编码形式有OBJ_ENCODING_ZIPLIST和OBJ_ENCODING_HT两种,其中,前者的底层数据结构为压缩列表,后者的底层数据结构为字典。如有对这两个结构不清楚的,可以点击跳转去温故复习一下。...

View Article


用redis实现动态时间段内统计排序

问题描述 需要根据某类数据在动态时间段内的统计值对这些数据进行排名。例如按过去24小时内点赞数排名的帖子,每隔一小时计算一次结果。以下描述均针对这个例子展开。 解决思路 针对这种问题,我的第一反应是直接通过 mysql 一张数据表记录所有数据的每一条统计值改变的行为,例如记下每个帖子在哪个时间点被谁点赞。排序结果直接通过 select + where + order_by + limit...

View Article

Trip Report: Bulgarian Web Summit

I have never been to Sofia, Bulgaria till this past February 2016, and boy did I enjoy myself. I visited the Bulgaria Web Summit and spoke there amongst many others. A few notes: Almost 800 people (so...

View Article

10 Questions on Hortonworks Data Cloud for AWS

We recently concluded our highly attended How to Get Started with Hortonworks Data Cloud for AWS Webinars . Thank you Jeff Sposetti and Sean Roberts for hosting the sessions. The webinars provided a...

View Article


Image may be NSFW.
Clik here to view.

Percona Server for MongoDB 3.4 Beta is now available

Percona is pleased to announce the release of Percona Server for MongoDB 3.4.0-1.0beta on December 23, 2016. Downloadthe latest version from thePercona web siteor the Percona Software Repositories ....

View Article


告别 MongoDB 2.x 拥抱 3.x 版本的5大理由

据不完全统计,目前还有很多同学在生产环境使用着 MongoDB 2.x 版本的服务,偶尔也会听到一些抱怨,但有些抱怨其实很没道理,因为抱怨的问题在最新版本的MongoDB里已经解决了,你缺的只是一次版本升级。 1. 更安全的数据库 3.x 版本默认WriteConcern 为{w:1},2.x版本为 {w: 0} 3.x 默认使用更安全的 SCRAM-SHA-1 算法鉴权,代替了2.x 版本默认的...

View Article

Image may be NSFW.
Clik here to view.

Dependency graph proposal

This postis all about dependency graph design for the Blender 2.8 project. Brief overview Before going too much into technical details let’s first look into some top-level design overview about what’s...

View Article

MongoDB学习笔记五―查询

数据准备 { "goods_id" : 1, "goods_name" : "KD876", "createTime" : ISODate("2016-12-21T11:19:39.010Z") }{ "goods_id" : "4", "goods_name" : "诺基亚N85原装充电器", "createTime" : ISODate("2016-09-11T00:00:00Z") }{...

View Article

4 Considerations for Delivering Data Quality on Hadoop

Organizations are increasingly trying to become data driven. In my lastblog, I outlined steps organizations should take to become data driven using the Kotter Model. In this blog I want to highlight a...

View Article


Image may be NSFW.
Clik here to view.

Neo4j 3.2.0-alpha01 Release

ByIgor Borojevic, Director of Product Management | December 23, 2016 Happy holidays! We’re pleased to give you a freshly packaged alpha release of Neo4j 3.2, namelyNeo4j 3.2.0-alpha01, just in time...

View Article

lua-resty-redis 返回空值的问题记录

背景 我们的服务本来使用一组redis,以一致性哈希的方式来使用,现在打算替换为云平台的redis集群服务,因此需要设计一个平滑过渡的方案。解决方案并不难,两种方式可以使用不同的key,对于一种key使用ring_redis,另一种使用redis集群,这样只需要在redis库的接口内部进行key的解析,就无需对其他代码做过多改动了。...

View Article


Image may be NSFW.
Clik here to view.

每日一博 | 基于 Redis 的 Session 共享示例

在单机情况下,Session可由部署在服务器上的Web容器来管理 (如Tomcat、JBoss)。 在负载均衡的集群环境下,负载均衡可能将请求分发到不同的服务器上去,在这种情况,需要将有状态的session统一管理起来。 本文将给出一个简单的示例,将session存放到Redis统一管理。因为只是一个示例,所以Nginx只用1台,Tomcat使用2台,Redis一个或者简单的主从。 环境准备...

View Article

WiredTiger 2.9.1 发布,MongoDB 存储引擎

MongoDB 存储引擎 WiredTiger 2.9.1 发布了。WiredTiger 2.9.1 版本包含新功能,新的支持平台,次要 API 更改和错误修复。有关详细信息,请参阅 更改日志 。 新功能和 API 更改(有关完整详细信息,请参阅 API 文档): SERVER-26545 Remove fixed-size limitation on WiredTiger hazard...

View Article


Image may be NSFW.
Clik here to view.

多数企业将云视为大数据部署的最佳平台

【51CTO.com快译】2016年即将结束,一项新的调查结果表明,大数据技术在云环境下正发展成熟且规模快速增长。...

View Article

redis配置文件参数解释说明

> > > >> > > >>> "" """" "" """" "" ""

View Article

Image may be NSFW.
Clik here to view.

使用docker部署hadoop分布式集群

前言 这个部署是去年做的,有点久了,镜像上传在 dockerhub...

View Article
Browsing all 6262 articles
Browse latest View live