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

Image may be NSFW.
Clik here to view.

Migrating MongoDB Away from MMAPv1

This is another post in the series of blogs on the Percona Server for MongoDB 3.4 bundle release. In this blog post, we’ll discuss moving away from the MMAPv1 storage engine. Introduction WIth the...

View Article


Image may be NSFW.
Clik here to view.

Jean-Jerome Schmidt: New NinesControl Features Simplify Running MySQL &...

We were thrilled to announce the latest version of NinesControl early this week. Let’s have a closer look at some of the new features that were introduced. Web console for accessing SSH, SQL and...

View Article


ScyllaDB Closes $16M in Series B Funding

Latest round of funding will be used to meet growing demand for performance among core Apache Cassandra users and to launch first ScyllaDB Enterprise Release. PALO ALTO, CA (Mar 8, 2017) ScyllaDB...

View Article

Image may be NSFW.
Clik here to view.

【DBA进阶】MySQL源码分析、词法分析及其性能优化

mysql 支持标准的 SQL 语言,具体实现的时候必然要涉及到词法分析和语法分析。早期的程序可能会优先考虑手工实现词法分析和语法分析,现在大多数场合下都会采用工具来简化实现。MySQL、PostgreSQL 等采用 C/C++ 实现的开源数据库采用的是现代的 yacc/lex 组合,也就是 GNU bison/flex。其他比较流行的工具还有 ANTLR、JavaCC 等等。这些工具大多采用扩展的...

View Article

Image may be NSFW.
Clik here to view.

mongoDb的简单使用

MongoDB MongoDB 是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的,语法有点类似javascript面向对象的查询语言,它是一个面向集合的,模式自由的文档型数据库。 mongodb与 mysql性能比较 应用范围和限制...

View Article


ggplot2 and Neo4j

The February meetup was hosted at Ann Arbor SPARK ( announcement slides ). Ellis Valentiner gave a short recap from rstudio::conf(2017L). Ellis is a Data Scientist at Powerley, a startup that’s...

View Article

Image may be NSFW.
Clik here to view.

生产系统搭建spark,基础环境注意事项

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

View Article

Image may be NSFW.
Clik here to view.

Node.js+MongoDB对于RestfulApi中用户token认证实践

最近在新的项目中开发中需要使用到RESTful API的对接IOS与Android应用开发,所以一不小心就踩进了REST的坑里面……在开发过程中还是有许多收货的。 这次就来看看API设计中的token的思路与实践 。 技术栈 使用Node.js上的 Express 框架进行我们的路由设计, Mongoose...

View Article


Image may be NSFW.
Clik here to view.

ScyllaDB Takes on Cassandra to Boost Efficiency, Reduce Latency

Henrik Johansson, senior developer at Eniro , gives a glowing review of the ScyllaDB database system for its part of a microservice-based pipeline used at the Swedish search and directory assistance...

View Article


Image may be NSFW.
Clik here to view.

The Co-Evolution of Computer Hardware & Graph Databases: Why Graph-Native...

ByJim Webber, Chief Scientist | March 9, 2017 Neo4j is a nativegraph database, which means all of the code from the web browser to the drivers, Bolt protocol, page cache, cluster protocols, disk...

View Article

Image may be NSFW.
Clik here to view.

Nginx 通过 Lua + Redis 实现动态封禁 IP

一、背景 为了封禁某些爬虫或者恶意用户对服务器的请求,我们需要建立一个动态的 IP 黑名单。对于黑名单之内的 IP ,拒绝提供服务。 二、架构 实现 IP 黑名单的功能有很多途径: 1、在操作系统层面,配置 iptables,拒绝指定 IP 的网络请求; 2、在 Web Server 层面,通过 Nginx 自身的 deny 选项 或者 lua 插件 配置 IP 黑名单;...

View Article

Image may be NSFW.
Clik here to view.

TreeTraversalsAgain(通过先序、中序遍历在不建树情况下推出后序遍历) 数据库 数据库学 ...

TreeTraversalsAgain(通过先序、中序遍历在不建树情况下推出后序遍历)。 void solve(int preL,int inL,int postL,int n){ if(n==0) return; if(n==1) {post[postL]=pre[preL];return;} root=pre[preL]; post[postL+n-1]=root;...

View Article

Image may be NSFW.
Clik here to view.

Redis实战之Redis+Jedis Redis Redis集群 Redis常见操作 Jedis

Redis实战之Redis+Jedis,用Memcached,对于缓存对象大小有要求,单个对象不得大于1MB,且不支持复杂的数据类型,譬如SET等。基于这些限制,有必要考虑Redis! 言归正传,目前Redis大概有3中基于Java语言的Client:JredisJedisRedis4J这里只说Jedis,因为它是官方提供的唯一Redis Client For Java...

View Article


Resources的使用方式 数据库 数据库学习 Resources Resources教程

Resources的使用方式 Resources(com.ibatis.common.resource.*)Resources 类为从类路径中加载资源,提供了易于使用的方法。处理 ClassLoader 是一项富于挑战的工作,尤其是应用服务器/容器的情况下。Resources 类试图简化这些工作。Resources 类常用于以下几种情况:? 从类路径加载 SQL Map 配置文件(如...

View Article

Image may be NSFW.
Clik here to view.

Hibernate初识 数据库 数据库学习 Hibernate Hibernate框架

Hibernate初识,对于Hibernate的初步认识,使用这个框架,可以不用写sql命令来操作数据库。比较关键的地方是,使用Hibernate对数据库操作的时候,是通过修改对象来完成操作的。首先,需要做一些准备工作1、使用SQL Server,创建好数据库新建好表,如图:2、使用MyEclipse新建JAVA...

View Article


laravel5.2数据库基本操作 数据库 数据库学习 laravel laravel基本操作

<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use DB; class User extends Model { static function getResult(){ $res=null; /* //插入...

View Article

MongoDB CPU飙升至99%解决

公司业务调整,把一部分数据由Redis转至MongoDB,业务在测试环境正常,生产环境上线后发现压力一上来MongoDB的服务直接把CPU占满了,和开发的同学分析了一下也参考了一下百度上类似的问题,最后定位原因:未使用索引。 解决方法很简单:对应的关键字段创建索引即可。 参考命令如下: >use Data; #进入数据库Data,注意区分大小写; >db.stats();...

View Article


数据库连接代码 数据库连接代码 数据库连接教程 数据库

#include "sql.h" #include "sqltypes.h" #include "sqlext.h" using namespace std; RETCODE retcode; //结果返回集 SQLHDBC hdbc; //定义连接句柄 void SQL(char* ); //执行SQL语句子程序 void print(); //打印子程序 void print2(); void...

View Article

Image may be NSFW.
Clik here to view.

nodejsfind方法fields属性的一点问题 fields属性 nodejsfind方法 fields属性问题

最近在学用nodejs从MongoDB数据库存取数据时,发现一个很有意思的问题,在此分享给大家。 按照《Node.js权威指南》中的说法——“在nodejs...

View Article

《数据库系统概论》学习笔记1 数据库学习笔记 数据库概论 数据库介绍 数据库笔记

一、数据库的4个基本概念 1.数据(date): 定义:是数据库中存储的基本对象。描述事物的符号记录为数据,可以是文字、图 像、图形、视频、音频等多种表现形式。 含义:数据的含义称为数据的语义,数据与其语义是不可分的。例如,92是一个 数据,可以是某同学的课程成绩,也可以是某人的体重,还可以是打到人数。。。 2.数据库(DataBase,DB)...

View Article
Browsing all 6262 articles
Browse latest View live