var json = @"{ 'DisplayName': '新一代算法模型', 'CustomerType': 1, 'Report': { 'TotalCustomerCount': 1000, 'TotalTradeCount': 50 }, 'CustomerIDHash': [1,2,3, ...
项目里使用了Mongodb作为数据库,不同于Mysql,这是一个非关系型数据库,因此不能使用SQL 下面是我对NoSQL的学习 条件查询 第一个花括号 查找全部 db.users.find() 复制代码 精准查找 db.users.find({"name":"zhangsan"}) 复制代码 精准查 ...
分类:
数据库 时间:
2020-07-02 13:38:47
阅读次数:
72
我们项目的结构图 通过使用Ngnix的路径转发,我们会自动将/api目录下的所有请求转发到后端 server { gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_comp_level 2; gzip_types text/plain app ...
分类:
其他好文 时间:
2020-07-02 11:54:53
阅读次数:
57
golang文件操作,包括打开,关闭,增删改查。n久之前的了,仅作为记录 ...
分类:
其他好文 时间:
2020-07-01 23:51:41
阅读次数:
54
Response.Write("客户端计算机名:" + Request.UserHostName + "<BR />"); Response.Write("客户端IP:" + Request.UserHostAddress + "<BR />"); Response.Write("浏览器:" + R ...
分类:
Web程序 时间:
2020-07-01 20:12:20
阅读次数:
70
单条件查询: db.getCollection('task').find({"id": "dc717654-dc45-4bf9-8e8a-1f1b146d6524"}) 单条件查询(属性为叶子节点) db.getCollection('archive_result').find({"results. ...
分类:
数据库 时间:
2020-07-01 16:06:36
阅读次数:
84
以 %%writefile request.py 开头。 下面写 python 代码,然后 shift + enter 键,可以把 python 代码写入开头指定的文件中,没有则自动创建。 以 %run request.py 的形式运行当前目录下的 python 文件。 也可以指定绝对路径。 Lin ...
分类:
编程语言 时间:
2020-07-01 14:25:59
阅读次数:
75
php mongodb拓展 安装 下载地址:https://pecl.php.net/get/mongodb-1.7.4.tgz ,下载解压: cd /wget -c https://pecl.php.net/get/mongodb-1.7.4.tgz#解压tar -xzvf mongodb-1.7 ...
分类:
数据库 时间:
2020-07-01 14:08:09
阅读次数:
50
mongodb集群概念介绍 mongodb支持架构有单机(stand-alone)、主从(master-slave)、副本集(replica set)以及分片(sharding), 而最常用的架构莫过于副本集 + 分片。而分片有三大组件,分别为mongos、configsvr、sharding se ...
分类:
数据库 时间:
2020-07-01 12:36:50
阅读次数:
60
Redis有哪些数据结构? 字符串String、字典Hash、列表List、集合Set、有序集合SortedSet。 如果你是Redis中高级用户,还需要加上下面几种数据结构HyperLogLog、Geo、Pub/Sub。 如果你说还玩过Redis Module,像BloomFilter,Redis ...
分类:
其他好文 时间:
2020-07-01 09:55:59
阅读次数:
56