(mybatis注意各个文件的映射问题)用到的t_user数据库脚本:-- 导出
mybatis 的数据库结构CREATE DATABASE IF NOT EXISTS `mybatis` /*!40100 DEFAULT CHARACTER
SET utf8 */;USE `mybatis`;--...
分类:
其他好文 时间:
2014-05-14 03:19:55
阅读次数:
396
ServerStatus返回信息ServerStatus返回mongodb中很多信息http://docs.mongodb.org/manual/reference/command/serverStatus/目录ServerStatus返回信息...
11.实例信息... 12.锁... 13.全局...
分类:
数据库 时间:
2014-05-12 06:05:36
阅读次数:
694
1.profileprofiling levels:
0,关闭profile;1,只抓取slow查询;2,抓取所有数据。启动profile并且设置Profile级别:可以通过mongo
shell启动,也可以通过驱动中的profile命令启动,启动后记录会被保存在system.profile col...
分类:
数据库 时间:
2014-05-12 02:09:33
阅读次数:
431
本实验将按以下几步进行:实验环境monodevelop,ubuntu10.04,实验目的:探索分布式文件存储方案1、单机小文件的存储,逐步增加上传文件的大小,观察mongoDB中文件对磁盘分配大小的变化。2、采用分片的方式存储大量的数据实验一:首先建立一个数据库gywdb,上传一个574.5kB大小...
分类:
数据库 时间:
2014-05-11 23:07:51
阅读次数:
696
邻接矩阵的图示:
构建一个这样的无向邻接矩阵。
参考网站: http://www.geeksforgeeks.org/graph-and-its-representations/
这里写了个类,增加删除图的操作。
#pragma once
#include
#include
class AdjListGraph
{
struct Node
{
int dest;
...
分类:
其他好文 时间:
2014-05-11 22:44:20
阅读次数:
378
setDocument = Sizzle.setDocument = function( node ) {
var hasCompare,
//node为Element时返回node所属document
//node为Document时返回node
//node为空时返回window.document
doc = node ? node.ownerDocument || node...
分类:
Web程序 时间:
2014-05-11 22:41:15
阅读次数:
459
1. mongodb安装
mongodb的安装, 配置,启动,服务停止,
先下载mongodb,官网地址;http://www.mongodb.org/downloads
curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.1.tgz...
分类:
数据库 时间:
2014-05-11 21:13:05
阅读次数:
437
1. 存储类型
mongodb文档类似于json,但不是完全的json。
json只有六种类型:null, bool, 数字,字符串,数组,对象。
但是mongo的文档在json的基础上还扩展了几种类型, 比如,日期类型,整数,浮点数。
mongodb真正存储在磁盘上是使用bson(binary json)。...
分类:
数据库 时间:
2014-05-11 20:28:51
阅读次数:
442
PHP是一款服务器端的脚本语言,主要用于动态网页开发,是目前最流行的开发语言之一。Node是一款用来编写高性能网络服务器的JavaScript工具包。文中将两者进行对比,列举了PHP优于Node.js的五大理由。一起来看下。
1. 容易托管 大多数Web托管服务器提供商能为PHP提供托管,而对于N....
分类:
Web程序 时间:
2014-05-11 17:47:25
阅读次数:
335
题目
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,...
分类:
其他好文 时间:
2014-05-11 03:25:24
阅读次数:
298