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

Image may be NSFW.
Clik here to view.

MongoDB在线讲座系列18 Ops Manager在企业环境中的应用

MongoDB在线讲座系列18 Ops Manager在企业环境中的应用 在MongoDB讲座系列中,讲师将会为大家介绍以下内容: 如任何一个分布式系统,MongoDB在应用过程中无可避免地会遇到大量服务器的管理、监控等运维工作。本期讲座将讨论如何利用企业运维工具Ops Manager对企业中的MongoDB集群进行自动化运维管理工作,以及如何使用Ops Manager API与已知的企业系统集成。...

View Article


'Baby, I know your database needs upgrades tonight'

Vendors' music video homages are always just … erm … remarkable The Register has spotted a new music video homage by a vendor and because they're always so excellent, bring it to you for your...

View Article


Image may be NSFW.
Clik here to view.

MongoDB 复制集(Replica Set)

复制集(replica Set)或者副本集是MongoDB的核心高可用特性之一,它基于主节点的oplog日志持续传送到辅助节点,并重放得以实现主从节点一致。再结合心跳机制,当感知到主节点不可访问或宕机的情形下,辅助节点通过选举机制来从剩余的辅助节点中推选一个新的主节点从而实现自动切换。这个特性与mysql MHA实现原理一样。本文主要描述MongoDB复制集并给出创建复制集示例以及完成自动切换。...

View Article

Image may be NSFW.
Clik here to view.

[Repost] How To Use MongoDB Atlas In API Integration Services

To say we’re huge fans of MongoDB is an understatement of the year. We recently rewrote our entire architecture to enable a pluggable environment with direct access and customization of the DB taking...

View Article

Image may be NSFW.
Clik here to view.

Applying Site Search Best Practices using Sitecore Part 4

This is the last part of my long adventure to cover all the best practices listed in the Best Practices for Site Search eBook. The previous parts can be foundhere. Search Analytics and Reporting In...

View Article


msyql常用操作命令 msyql常用命令 msyql数据库 数据库命令

账户操作 //创建用户 //CREATE USER ‘用户名’@’本地或远程ip’ IDENTIFIED BY ‘密码’; CREATE USER ‘dbuser’@’localhost’ IDENTIFIED BY ‘password’; //授权 //GRANT 功能 ON 数据库名.表名 TO ‘用户名’@’本地或远程ip’ GRANT SELECT , INSERT , UPDATE ON...

View Article

Image may be NSFW.
Clik here to view.

乐观锁与悲观锁――解决并发问题 并发控制 并发问题 锁 并发问题解决

为什么需要锁(并发控制)? 在多用户环境中,在同一时间可能会有多个用户更新相同的记录,这会产生冲突。这就是著名的并发性问题。 典型的冲突有: 丢失更新:一个事务的更新覆盖了其它事务的更新结果,就是所谓的更新丢失。例如:用户A把值从6改为2,用户B把值从2改为6,则用户A丢失了他的更新。...

View Article

纪念项目中写的第一个存储过程 存储过程 存储过程编写 项目编写

因为项目需要,需要提供存储过程,我之前从来没写过存储过程,真心不会写啊,但是老爷们不能说不,百度一下,给他写一个。create or replace procedure pro_drgs_weight(starttime varchar2,endtime varchar2,hid number,p_cur out sys_refcursor)as allNum number;begin select...

View Article


HBase跨版本数据迁移总结 HBase数据迁移 跨版本数据迁移 HBase教程 HBase总结

某客户大数据测试场景为:Solr类似画像的数据查出用户标签——通过这些标签在HBase查询详细信息。以上测试功能以及性能。其中HBase的数据量为500G,Solr约5T。数据均需要从对方的集群人工迁移到我们自己搭建的集群。由于Solr没有在我们集群中集成,优先开始做HBase的数据迁移,以下总结了HBase使用以及数据迁移遇到的各种问题以及解决方法。一.迁移过程遇到问题以及解决客户HBase版本:...

View Article


大数据量高并发的数据库优化详解 数据库优化 数据库结构 数据库查询 数据集讲解

如果不能设计一个合理的数据库模型,不仅会增加客户端和服务器段程序的编程和维护的难度,而且将会影响系统实际运行的性能。所以,在一个系统开始实施之前,完备的数据库模型的设计是必须的。...

View Article

什么是索引?索引有哪几种?什么时候使用索引比较好? 索引 索引简介 索引种类 索引使 ...

索引用来快速地寻找那些具有特定值的记录,所有的mysql索引都以B-树的形式保存。如果没有索引,执行查询的时候MySQL必须从第一个记录开始扫描整个表中的所有记录,直至找到符合要求的记录。表里面的记录数量越多,这个操作的代价就越高。如果作为搜索条件的列上已经创建了索引,MySQL无需扫描任何记录既可迅速得到目标记录所有在位置。如果表有1000个记录,通过索引查找记录至少比顺序扫描记录快100倍。...

View Article

Linux常用十大类命令书册 Linux常用命令 Linux命令 Linux教程 linux书册

1、linux管理文件和目录的命令 命令 功能 命令 功能 pwd 显示当前目录 ls 查看目录下的内容 cd 改变所在目录 cat 显示文件的内容 grep 在文件中查找某字符 cp 复制文件 touch 创建文件 mv 移动文件 rm 删除文件 rmdir 删除目录 2、有关磁盘空间的命令 命令 功能 mount 挂载文件系统 umount 卸载已挂载上的文件系统 df...

View Article

JAVA代码备份数据库与恢复 JAVA代码备份 java数据库备份 java代码恢复 java语言

被封的是mysql数据库!代码如下,自己运行下看看吧!废话不说了!package backup.back;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.InputStream;import...

View Article


1.37 Billion Records Exposed by Spammers - Update

Nearly 1.4 billion user records were leaked by a company run by known spammers after said company unknowingly leaked a series of files full of sensitive information about its operations. River City...

View Article

Image may be NSFW.
Clik here to view.

mongoaudit MongoDB Auditing & Pen-testing Tool

mongoaudit is a CLI tool for MongoDB auditing of servers, detecting poor security settings and performing automated penetration testing. It is widely known that there are quite a few holes in MongoDB’s...

View Article


Mongo Metrics: Calculating the Mean

Mongo Metrics is a new series in collaboration with Compose's Resident Data ScientistLisa Smith that shows you how to extract insights and toy with data stored in Compose MongoDB. This series is a...

View Article

Mark Needham: Neo4j: apoc.date.parse java.lang.IllegalArgumentException: Ille...

I often find myself wanting to convert date strings into Unix timestamps using Neo4j’s APOC library and unfortunately some sources don’t use the format that apoc.date.parse expects. e.g. return...

View Article


Log Buffer #506: A Carnival of the Vanities for DBAs

This Log Buffer Edition covers blog posts from Oracle, SQL Server and mysql. Oracle: 12cR2 new features for Developers and DBAs Adding Attachments to Deliveries in Order Information Portal Database 12c...

View Article

Image may be NSFW.
Clik here to view.

Git as a NoSql database

Git’s man-pages state that it’s a stupid content tracker . It’s probably the most used version control system in the world. Which is very strange, since it doesn’t describe itself as being a source...

View Article

Image may be NSFW.
Clik here to view.

Harness Hadoop and Spark for user-friendly BI

Big data shouldn’t be an area for only academics, data scientists, and other specialists. In fact, it can’t be. If we want big data to benefit industry at large, it needs to be accessible by mainstream...

View Article
Browsing all 6262 articles
Browse latest View live