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

数据库的基础操作

* mysql数据库* 数据库* 数据库就是一个文件系统,访问数据的时候需要通过标准的SQL语言来完成。* 关系型的数据* 保存的实体与实体之间的关系。(用户、商品、订单)* 常见的数据库* Oracle 公司Oracle(甲骨文)数据产品,收费的大型的数据库。* MySQL 开源的,被Oracle收购了,小型的数据库。5.x版本免费,6.x收费了。* SQLServer...

View Article


Apriori初步学习+C++实现

1.基本概念Apriori算法是一种挖掘关联规则的频繁项集算法,最早由R.Agrawal提出,现已广泛的运用到商业、网络安全等领域。最常见的淘宝相关推荐便包含有这一算法。 该算法的主要步骤为: (1) 找到所有支持度大于最小支持度的项目集,即频繁项集(Frequent Itemset); (2)...

View Article


Image may be NSFW.
Clik here to view.

SQLServer数据库操作(二)

主要内容: 1)常用快捷键和关键字 2)创建库和表 create 3)插入数据:insert into 4)更改数据:update set 5)删除数据:delete,truncate,delete from 表名 6)数据约束:6种常用的约束,两种添加约束的方法。主键、外检、check、default、unique、非空, alter 7)数据检索:数据查询 as设置别名 8)聚合函数:avg...

View Article

Image may be NSFW.
Clik here to view.

《自己动手设计数据库》第10章建立关系特性

第10章 表关系本章就前面介绍术语时介绍的表之间的关系类型、参与度、参与方式进行讲解关系为何重要对于存在逻辑联系的两表,可在两表之间建立连接。有助于进一步改进表结构和将冗余数据减至最少。这种机制能实现同时从多个表中提取数据。关系的类型类型就3种:一对一,一对多,多对多,所以这里主要讲解如何用图解法来展现该关系。一对一一对多多对多把3中关系的示意图放在一起讲解,从上往下依次是一对一TABLE...

View Article

Image may be NSFW.
Clik here to view.

Redis集群的操作

1、原始集群 1.1 启动Redis集群[root@cent03 ~]# /usr/local/redis/bin/redis-server /usr/local/redis-cluster/7001/redis.conf [root@cent03 ~]# /usr/local/redis/bin/redis-server...

View Article


CPU使用率终于正常了――记一次订餐系统事故处理

引子 经过漫长的等待,儿子终于出生了。欣喜之余,就是各种手足无措,顾此失彼了。因为不懂,心里总是慌慌的,有点小毛病,恨不得一步就到医院。 婆媳育儿观念的差异,让心乱如麻的我,又成了风箱里的老鼠,两个不服软的女人都在考验我的智慧,虽是极力从中斡旋,还是免不了爆发了一场婆媳冲突。 还是智慧少了,估计四大名著还得再读一遍(唬一下人应该还是可以的:-D)。...

View Article

Symposium Notes - Day Three Features Data Assembly

With 24 meetings under my belt from the first two days at Orlando Symposium, Wednesday’s 13 (and a presentation) didn’t look quite as daunting. It began well, with enough time for a muffin and some tea...

View Article

APNs http2接口速度调优

第一招:釜底抽薪 简介:通过去除无效devicetoken,本地减少发送数,来提高整个任务的发送速度。 有效性:视app决定,有的app卸载用户少,作用不明显,有的app卸载用户90%以上,效果杠杠的。...

View Article


Image may be NSFW.
Clik here to view.

Using Neo4j & Structr to Measure the Impact of 1 Tonne of Carbon

ByJohn Poljak, Founder, Keynumbers | October 5, 2016 Structr is a Silver sponsor of GraphConnect San Francisco . Meet their team on October 13-14th at the Hyatt Regency SF. It’s on the news all the...

View Article


What's New in Tower 3: Search

In July, we releasedAnsible Tower 3. In this blog series, we will take a deeper dive into Tower changes designed to make our product simpler and easier to scale Ansible automation across your...

View Article

Image may be NSFW.
Clik here to view.

Atlas Update Faster Scaling

MongoDB Atlas has only been around for a few months and already we’ve improved the speed at which you can scale your clusters. “Scaling should be faster than a speeding bullet” -...

View Article

Image may be NSFW.
Clik here to view.

News Feeds

Ron Burgundy (in Anchorman) gets Hungry The “News Feed” is a core feature of social networks like Twitter , Facebook , or Vine (RIP). Let’s take a look at how we could model and implement this in Neo4j...

View Article

Image may be NSFW.
Clik here to view.

Compaction priority in RocksDB

Compaction priority is an option in RocksDB that determines the next file to select for compaction. Here I show the impact of this option on the amount of storage writeswhile running Linkbench. The...

View Article


Image may be NSFW.
Clik here to view.

Use Neo4j As Data Model Tool For Salesforce

Use Neo4j to Document Salesforce Requirements I have been working on a team that is aiming to implement a Salesforce-based CRM solution for Enrollment Management. From the beginning, we had an...

View Article

Image may be NSFW.
Clik here to view.

为何说云数据库对甲骨文在企业市场的领先地位构成了威胁?

【51CTO.com快译】甲骨文首席执行官拉里埃利森最近在甲骨文OpenWorld大会上登台发言时,放出话来 “要是我讲话大声些,可能人人会相信我。”他炮轰亚马逊网络服务公司(AWS)的技术太封闭、太昂贵、太过时、太缓慢。但是这些同时是甲骨文经常饱受的诟病,所以埃利森停止防守、发动进攻是有其道理的。...

View Article


Image may be NSFW.
Clik here to view.

大数据的那些事(4):活雷锋与风口的猪

作者:飞总 按照惯例今天应该是继续讲三驾马车的BigTable,但是一则BigTable这东西不容易一下子说清楚。二则我觉得是时候停一下技术,多聊点八卦。所以我们来讲讲这个著名的活雷锋公司,以及Hadoop的早年。...

View Article

Hadoop Hive UDTF Tutorial Extending Apache Hive with Table Functions

Source:http://beekeeperdata.com/posts/hadoop/2015/07/26/Hive-UDTF-Tutorial.html Author:Matthew Rathbone Co-author: Elena Akhmatova Article Hadoop Hive UDTF Tutorial Extending Apache Hive with Table...

View Article


Redis培训之一安装和配置文件

培训大纲 简介 Redis全拼remote dictionary server (远程字典服务器),存储结构是键值对的形式,支持的数据类型有: 字符串类型 散列类型 列表类型 集合类型 有序集合类型 用途: 做缓存 使用列表键实现队列,还支持发布/订阅的消息模式。 Redis and memcache对比: Redis...

View Article

Image may be NSFW.
Clik here to view.

Redis培训之二管理、监控和原理篇

管理 启动: Redis-server 或redis-server /etc/redis/redis.conf 关闭: Redis-cli SHUTDOWN 或kill redis进程号 安全设置: Bind 127.0.0.1 #指定只允许本机连接 Requirepass mypassword >AUTH mypassword >SET foo 命令重命名: FLUSHALL #...

View Article

相同的列式(数据库),不同的存储

在NoSQL之中,一种很重要的数据库,叫做列式数据库。 下面是百度百科的解释: 列式数据库 是以列相关存储架构进行数据存储的数据库,主要适合于批量数据处理和即时查询。相对应的是行式数据库,数据以行相关的存储体系架构进行空间分配,主要适合于小批量的数据处理,常用于联机 事务 型数据处理。 本文主要想补充说明的是,列式数据库的存储其实也不完全一样的! 一个典型的例子就是HBase 与 Cassandra...

View Article
Browsing all 6262 articles
Browse latest View live