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

Cassandra Resuming pagination

Cassandra provides the page state information and it can be reused to get next iteration. Statement stmt = QueryBuilder .select() .all() .from("users") .where(eq("email", emailUpper));ResultSet...

View Article


Mongdb for DBAs: Week6

Sharding & Data Distribution shard key 用于决定文档存于哪个 shard, 分为 range based 和 hash based 。以 range based 为例,一个[min, max]范围形成一个chunk,取一个中间的数字将原来的区块分为两个(splite),再把新分出来的区块发送(migration)给其它shard。 Running...

View Article


Mongdb for Developers: Week6

Connecting to a Replica Set from Pymongo read_pref = pymongo.read_preferences.ReadPreference.SECONDARY connection = pymongo.MongoClient() # for default localhost:port connection =...

View Article

Image may be NSFW.
Clik here to view.

Run Scala implemented Hadoop Jobs on HDInsight

Previously we set up a Scala application in order to execute a simple word count on hadoop. What comes next is uploading our application to HDInsight. So we shall proceed in creating a Hadoop cluster...

View Article

Image may be NSFW.
Clik here to view.

[PDF]面向海量交通数据的HBase时空索引

面向海量交通数据的HBase时空索引 房俊, 李冬, 郭会云, 王嘉怡...

View Article


Image may be NSFW.
Clik here to view.

Learn How Data Modelling Works in MongoDB

In this chapter, we are going to learn about the concept of Data Modelling as well as various relationships that we can use to model data in MongoDB. Let’s quickly review the concept of data modelling,...

View Article

MongoDB 最佳实践 持续更新版

版本历史: - V1.0 2017.02.06 TJ Tang 初始版本 前言 作为MongoDB的一名方案架构师,我的大部分时间都是在和MongoDB的客户和用户交互。在这里,我希望通过一个不断更新的活文章的方式来为大家收集整理一下MongoDB开发及维护时候值得了解或者遵从的一些最佳实践。我非常真切地希望您也可以参与进来,共同维护这个文档,让更多的用户受惠(可以通过文末微信号联系我)...

View Article

Redis热迁移实战总结

Redis cluster 使用 slots 来分配集群中的资源,因此官方提供了热迁移 slots 的方案,以便于迁移 redis cluster 节点中的信息。此方案不仅可以使用于节点迁移,也可以根据资源的不同,配置不同的 slots 数量。 集群原环境: 主机 IP : 192.168.170.101 集群节点端口: 10001-10006 集群当前主备关系: 迁移需求:现在有节点...

View Article


基于Redis实现分布式锁

用单实例的正确实现 命令: set resource_name my_random_value NX PX timeout_millis ,在 key resource_name 不存在时( NX 选项的作用)设置这个key 的值为 my_random_value 、超时时间设为 timeout_millis ( PX 选项的作用)。 删除key的时候用 Lua 脚本来检测key的值是否为...

View Article


Image may be NSFW.
Clik here to view.

MyEclipse使用反向工程快速构建XML文档 MyEclipse MyEclipse教程 反向工程 快速构建文 ...

MyEclipse使用反向工程快速构建XML文档。在使用Hibernate进行数据库操作时在代码编写方面确实大大减少了工作量,但是需要编写大量的XML文档,所幸MyEclipse提供了一种反向工程来快速构建XML文档。 本文章中数据库使用Oracle、MyEclipse使用2014版 下面首先看数据库,这里仅以一个Login表为示例,表中有三个字段,id(主键)、username、password。...

View Article

Image may be NSFW.
Clik here to view.

为什么OceanBase架构特别适合双十一

为什么 OceanBase 架构特别适合双十一 感谢所有同学的共同努力, 2016 年 OceanBase 分布式关系数据库渡过了一个成功的双十一:支持了支付宝核心的交易、支付、会员和账务等,并且创造了新的纪录:交易创建 17.5 万笔 / 秒、交易支付 12 万笔 / 秒、全天累计支付 10.5 亿笔! 其实,虽然不是刻意设计的,但 OceanBase...

View Article

Image may be NSFW.
Clik here to view.

2010年我们为什么选择从零开始做OceanBase数据库

2010年我们为什么选择从零开始做OceanBase数据库 2016 年双 11 ,支付宝核心交易、支付、计费、会员、账务等核心数据链全都运行在阿里巴巴 / 蚂蚁金服从零开始自主研发的分布式关系数据库 OceanBase 上。为什么阿里巴巴 / 蚂蚁金服不是基于开源数据库,而是从零开始研发 OceanBase ? 【 2010 年数据库对淘宝 / 支付宝的制约】 【关系数据库的门槛】 【...

View Article

Image may be NSFW.
Clik here to view.

Hibernate反向工程使用心得 Hibernate Hibernate教程 反向工程 数据库

Hibernate反向工程使用心得。MyEclipse中的hibernate反向工程可以根据数据表自动为我们生成实体类,提高工作效率。 但是,hibernate中单向一对多,多对一,双向多对一关联底层的数据库结构是一样, 双向一对一,单向一对一关联的底层数据库也差不多。 所以在进行反向生成实体类时候需要在生成过程中进行一些设置来生成我们需要的关联关系。...

View Article


Top 10 Hadoop Interview Questions & Answers

Q1. What exactly is Hadoop? A1. Hadoop is a Big Data framework to process huge amount of different types of data in parallel to achieve performance benefits. Q2. What are 5 Vs of Big Data ? A2. Volume...

View Article

You're doing Hadoop and Spark wrong and they will probably fail

Your attempt at putting Hadoop or Spark to work probably won't work, and you'll be partly to blame for thinking they are magic. That's the gist of a talk delivered by Gartner research director Nick...

View Article


baeldung - Coding and Testing Stuff: AWS Lambda Using DynamoDB With Java

I just released the Master Class of " Learn Spring Security ": >> CHECK OUT THE COURSE 1. Introduction AWS Lambda is serverless computing service provided by Amazon Web Services and WS DynamoDB...

View Article

Image may be NSFW.
Clik here to view.

荒蛮时代诞生的union服务

作者: tiankonguse | 更新日期: 2017-02-26 23:05:00 union服务是什么?当初为什么要做这样一个服务呢?这个服务又面临着什么问题呢? 一、荒蛮时代 几年前, 腾讯视频进化状态处于远古的荒蛮时代. 所有的宫殿都是靠人力使用蛮力建造起来的. 比如, 有一天业务A需要的使用视频的标题,图片和播放量, 然后了解到后台组有标题和图片的数据, 数据组有播放量的数据....

View Article


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

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

View Article

Mongdb for DBAs: Week7

Security authentication access control/authorization encryption network setup auditting authentication 用户信息存储在 dbname.system.users ,...

View Article

Image may be NSFW.
Clik here to view.

Exploring Azure Storage for SQL Server DBAs Part 2

In my previous article, we went over how Azure storage affects the performance of our hosted virtual machines running SQL Server. We looked at the different ways in which performance is throttled, and...

View Article
Browsing all 6262 articles
Browse latest View live