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

redis主/从配置及基于sentinel的故障转移

一、NoSQL基础概念: ACID:原子性、一致性、隔离性、持久性; 特性:数据量大、数据变化非常大(数据增长化、流量分布变化、数据间耦合结构变化)、数据源很多; CAP、BASE CAP C:多个数据节点的的数据一致; A:用户发出请求后的有限时间范围内返回结果; P:network partition,网络发生分区后,服务是否依可用;...

View Article


DataStax: Inside the brain of the container

This is a guest post for the Computer Weekly Developer Network written by Patrick McFadin, chief evangelist at DataStax ― thecompany develops and provides support for a commercial edition of the...

View Article


Nuxeo’s Eric Barroca on DAM innovation and interoperability

Better interoperability between Digital Asset Management and adjacent systems is one of my favorite topics (see my post on RDF and schema.org for DAM interoperability ). I believe that this requires...

View Article

数据库三范式 数据库 数据库学习 数据范式

数据库三范式,搬运工觉得这个讲解对于初步学习的人比较好。 数据库范式那些事 总结: 1NF: 字段是最小的的单元不可再分 2NF:满足1NF,表中的字段必须完全依赖于全部主键而非部分主键 (一般我们都会做到) 3NF:满足2NF,非主键外的所有字段必须互不依赖 4NF:满足3NF,消除表中的多值依赖

View Article

利用RMAN恢复整个数据库 数据库 数据库学习 数据库恢复 RMAN

利用RMAN恢复整个数据库案例一 适合场合:恢复的目录一致,同时备份的过程中有归档日志 恢复的数据库目录和down机的数据库一致,还有一个就是RMAN备份的时候已经备份了归档日志。 备份脚本: run{ allocalte channel ch1 type disk; sql ‘alter system archive log current’; backup as compressed...

View Article


基于Redis的分布式锁到底安全吗(下)?

自从我写完这个话题的上半部分之后,就感觉头脑中出现了许多细小的声音,久久挥之不去。它们就像是在为了一些鸡毛蒜皮的小事而相互争吵个不停。的确,有关分布式的话题就是这样,琐碎异常,而且每个人说的话听起来似乎都有道理。 今天,我们就继续探讨这个话题的后半部分。本文中,我们将从antirez反驳Martin Kleppmann的观点开始讲起,然后会涉及到Hacker...

View Article

Image may be NSFW.
Clik here to view.

Redis常见7种使用场景(PHP实战)

Redis是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。 本篇文章,主要介绍利用php使用Redis,主要的应用场景。 简单字符串缓存实战 $redis->connect('127.0.0.1', 6379); $strCacheKey = 'Test_bihu'; //SET 应用 $arrCacheData...

View Article

Image may be NSFW.
Clik here to view.

基于HDP版本的YDB安装部署

第三章 YDB依赖环境准备 一、 硬件环境 硬件如何搭配,能做到比较高的性价比,不存在短板。合理的硬件搭配,对系统的稳定性也很关键。 1. CPU不是核数越高越好,性价比才是关键。 经常遇到很多的企业级客户,他们机器配置非常高,CPU有128 VCore,256G内存,但是只挂载了1块8T的SATA硬盘,千兆网卡。...

View Article


Image may be NSFW.
Clik here to view.

Learn How to Update and Delete From a Collection using MongoDB

In this chapter, we are going to use the MongoDB JDBC connection (explained in the previous article) in order to connect MongoDB database with JAVA. After successfully connecting MongoDB with JAVA, we...

View Article


WordCount on Hadoop with Scala

Hadoop is a great technology built with java. Today we will use Scala to implement a simple map reduce job and then run it using HDInsight. We shall add the assembly plugin on our assembly.sbt...

View Article

图存储引擎学习笔记

存储和索引 有两种存储方式,一种是Index Free Adjacency,不依赖于索引,直接存储关联的物理位置(内存指针,磁盘文件偏移量),这类的产品有neo4j, Titian, OrientDB,Graph Engine(@Microsoft), etc。第二种是Index-Based Adjacency,使用各种索引实现图的检索功能,这类的产品有 FlockDB(@Twitter),...

View Article

Image may be NSFW.
Clik here to view.

每日一博 | NoSQL 详细介绍及相关疑问总结

1. 介绍 1.1 出现的背景 NoSQL这个术语来源于一群定期在旧金山湾区开会并讨论一些共同关注可扩展的开源数据库的人们。该术语在2009年初被认同。 1.1.1 阻抗失谐 关系模型和内存中的数据结构不匹配。...

View Article

Image may be NSFW.
Clik here to view.

重拾初心――Sqoop1和Sqoop2的刨析对比

打开微信扫一扫,关注微信公众号【码农故事多】 转载请注明出处: http://www.voidcn.com/blog/gamer_gyt/ 博主微博: http://weibo.com/234654758 Github: https://github.com/thinkgamer 写在前面的话...

View Article


Image may be NSFW.
Clik here to view.

Mt-Falcon――Open-Falcon在美团点评的应用与实践

前言 监控系统是整个业务系统中至关重要的一环,它就像眼睛一样,时刻监测机房、网络、服务器、应用等运行情况,并且在出现问题时能够及时做出相应处理。 美团点评刚开始使用的是Zabbix监控系统,几经优化,在当时能够达到2W+机器,450W+监控项的量。随着各业务线的发展,监控项越来越多,Zabbix的问题也越来越突出,当时针对Zabbix的吐槽问题有:...

View Article

Image may be NSFW.
Clik here to view.

Before & After Architecture for Distributed Caching Fleet

We’re happy to announce we recently rolled out significant performance improvements to the Keen IO Compute API. This post explains how we were able to dramatically reduce query latency for all query...

View Article


Image may be NSFW.
Clik here to view.

Codis--分布式redis架构设计

Codis是一个分布式Redis解决方案,与官方的纯P2P的模式不同,Codis采用的是Proxy-based的方案。今天我们介绍一下Codis及下一个大版本RebornDB的设计,同时会介绍一些Codis在实际应用场景中的tips。最后抛砖引玉,会介绍一下我对分布式存储的一些观点和看法,望各位首席们雅正(黄旭东)。 一、 Redis,RedisCluster和Codis Redis...

View Article

Redis Failed opening .rdb for saving: Permission denied

Failed opening .rdb for saving: Permission denied This was the error I saw on my redis database when it started to fail. What was mysterious is that the logs showed that the database was working fine...

View Article


Building a Spring Boot RestController to Search Redis

First up, you need to configure a @Bean in your @SpringBootApplication class (full source is on GitHub here ): @Bean RedisTemplate<String, Object> redisTemplate() { RedisTemplate<String,...

View Article

Image may be NSFW.
Clik here to view.

This Week in Neo4j 25th February 2017

ByMark Needham, Developer Relations Engineer | February 25, 2017 Welcome to this week inNeo4j! From now on instead of covering everything that happened in Neo4j at the end of the month in one...

View Article

Image may be NSFW.
Clik here to view.

The Reddit Meme Graph with Neo4j

Saturday night after not enough drinks, I came across these tweets by @LeFloatingGhost . This definitely looks like a meme graph. We can do that too Recorded Session If you want to see me struggle get...

View Article
Browsing all 6262 articles
Browse latest View live