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

Image may be NSFW.
Clik here to view.

First Utility makes smart meters even smarter with DataStax platform

Whilst the government grapples with its long-delayed and very costly 11 billion smart meter rollout , independent energy supplier First Utility has been providing smart meters to its customers for...

View Article


Image may be NSFW.
Clik here to view.

Navigate All the Knowledge with Spring + Neo4j

ByJames Weaver, Consultant Technologist, Pivotal | February 2, 2017 Editor’s Note: This presentation was given by James Weaver at GraphConnect Europe in April 2016. Here’s a quick review of what he...

View Article


MongooseJS 4.7.8 发布,MongoDB 连接包

MongooseJS 4.7.8发布了。Mongoose 基于 Nodejs,使用 javascript 编程,连接 MongoDB 数据库的软件包,使 MongoDB的文档数据模型变的优雅起来,方便对 MongoDB文档型数据库的连接和增删改查等常规数据操作。 本次更新内容如下: fix(populate): 更好地处理数组下的虚拟填充 #4923 docs: upgrade...

View Article

CentOS 7下安装 redis 3.0.6并配置集群的过程详解

安装依赖[root@centos7-1 ~]# yum -y install gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel gcc-c++ automake autoconf安装 redis[root@centos7-1 ~]# wget...

View Article

利用Redis统计网站在线活跃用户的方法

前言在工作中我们经常遇到这样的需求,要对某个在线网站的活跃用户数量进行统计。这里我们以redis为例,说明一下其实现的过程。实现方法在Redis中存在bitmap这种数据类型,这种数据类型是建立在string数据类型之上的。这里,我们主要用到setbit、bitcount这2个命令,而使用的客户端为python的redis库。import redis r =...

View Article


详解使用Redis SETNX 命令实现分布式锁

使用Redis的 SETNX 命令可以实现分布式锁,下文介绍其实现方法。SETNX命令简介命令格式SETNX key value将 key 的值设为 value,当且仅当 key 不存在。 若给定的 key 已经存在,则 SETNX 不做任何动作。 SETNX 是SET if Not eXists的简写。返回值返回整数,具体为 - 1,当 key 的值被设置 - 0,当 key...

View Article

Image may be NSFW.
Clik here to view.

Making Your Data Add Up in 2017

January is a time for reflection and resolutions. There was no shortage of data stories Adrian Carr, Senior Vice President, MarkLogic. making their mark last year from Artificial Intelligence and...

View Article

Image may be NSFW.
Clik here to view.

SQL Server DBA’s Guide to the Gitlab Outage

This week, developer tools company GitLab had a serious database outage. The short story: An admin was trying to set up replication The site had an unusual load spike, causing replication to get...

View Article


Image may be NSFW.
Clik here to view.

Boost Apache Hadoop Hardware Performance 2X with SmartSense

Hortonworks SmartSense provides proactive recommendations that improve cluster performance, security and operations. As 30% of issues are configuration related, Hortonworks SmartSense makes an...

View Article


Image may be NSFW.
Clik here to view.

编译安装 编译安装

编译安装首先下载安装包 建议不要去官网下载,去github下载网速快点 解压 tar -vxf redis-3.2.6.tar.gz 看看安装了gcc没有whereis gcc 没有则需要安装gcc yum install gcc 编译 cd redis-3.2.6 make && make install安装tclwget...

View Article

Redis和Memcached的区别 Redis Memcached

Redis的作者Salvatore Sanfilippo曾经对这两种基于内存的数据存储系统进行过比较:...

View Article

Memcached集群的高可用(HA)架构 Memcached集群

Memcache自身并没有实现集群功能,如果想用Memcahce实现集群需要借助第三方软件或者自己设计编程实现,这里将采用memagent代理实现,memagent又名magent,大家注意下,不要将这二者当成两种工具。至于memcache、magent的安装请参考文章 在linux上安装Memcached服务 和...

View Article

Image may be NSFW.
Clik here to view.

SQLServer2012中LEAD函数简单分析 SQLServer LEAD函数

LEAD函数简单点说,就是把下一行的某列数据提取到当前行来显示,看示例更能解释清楚,先看测试用脚本DECLARE @TestData TABLE( ID INT IDENTITY(1,1), Department VARCHAR(20), LastName VARCHAR(20), Rate FLOAT ) INSERT INTO...

View Article


Image may be NSFW.
Clik here to view.

DBA 101: Altering a column

People always ask me what tools I use. Mostly this question comes from the topic of monitoring. I can honestly say that I don’t love any tools and you shouldn’t either. My time at Microsoft placed me...

View Article

数据库自动化:DBA和DevOps的双赢

本文要点: 为使数据库与敏捷开发与生产相匹配,DBA付出了极大的努力,但是该工作需要一种新的方法。新方法实现的关键在于更大程度上的系统化和自动化,确保不间断的一致性贯穿整个DevOps工作流,即从任务定义直至应用部署。 为使数据库成为整个开发中的单一可信数据源,必须对数据库做自动的、强制的版本控制,以避免破坏开发的不稳定性因素。...

View Article


Image may be NSFW.
Clik here to view.

这可能是最全的?Redis?集群方案介绍了 Redis集群

由于Redis出众的性能,其在众多的移动互联网企业中得到广泛的应用。Redis在3.0版本前只支持单实例模式,虽然现在的服务器内存可以到100GB、200GB的规模,但是单实例模式限制了Redis没法满足业务的需求(例如新浪微博就曾经用Redis存储了超过1TB的数据)。Redis的开发者Antirez早在博客上就提出在Redis...

View Article

Mybatis动态更新数据 Mybatis 动态更新数据

Mybatis动态更新数据原理同上一篇的 Mybatis动态插入数据(使用trim标签) ,控制同一张表,但传入的参数不固定,操作表的字段不固定,就要用到mybatis动态更新,普通的的方法会出现多余的字符。 方法一:使用set标签 update cx_customer_message MESSAGEE_CLASSIFY = #{messageClassify, jdbcType=VARCHAR},...

View Article


Image may be NSFW.
Clik here to view.

12C管理员账号sys登录失败 管理员账号 sys登录失败

问题现象 使用管理员账号sys登录sqlplus,出现 ORA-28009:connection as SYS should be as SYSDBA OR SYSOPER 原因分析 sys用户拥有SYSDBA,SYSOPER的权限,登录也只能用这两种身份登录,不能以normal登录。 sys是ORACLE权限最高的用户;...

View Article

having和where的区别 having和where的区别

(1)用的地方不一样 where可以用于select、update、delete和insert...into语句中。 having只能用于select语句中 .子句有区别 where子句中的条件表达式having都可以跟,而having子句中的有些表达式where不可以跟;having子句可以用集合函数(sum、count、avg、max和min),而where子句不可以。...

View Article

jdbc警告Establishing SSL connection with outserver‘s identity verification is n...

在连接数据库的URL中,数据库名字的后面加上这 几个参数就行了 ?useUnicode=true&characterEncoding=utf-8&useSSL=false 只加useSSL也是可以的 出现这个问题的原因就是mysql的高版本需要指定ssl

View Article
Browsing all 6262 articles
Browse latest View live