nosql

UI / GUI Admin Tools for MongoDB

拈花ヽ惹草 提交于 2019-12-26 06:31:24
问题 I am wondering what are some good tools for managing MongoDB from an interfaced environment. In particular, MySQL Benchmark and pgAdmin have been great for me for MySQL and PostgreSQL, respectively. Is there an "industry standard" for both MongoDB and NoSQL databases? 回答1: YOu can use http://robomongo.org/ to manage your database 来源: https://stackoverflow.com/questions/32085929/ui-gui-admin-tools-for-mongodb

hbase和 hive

╄→尐↘猪︶ㄣ 提交于 2019-12-26 04:55:29
hbase 是 nosql的一种。nosql的话,不需要sql作为查询语言,也不需要固定的表模式(table schema),也不怎么有sql的join操作,一般都能水平扩展,放宽ACID属性(因为CAP定理)。Hbase是C+P类型的,强一致性(仅支持单行事务)。最常见的应用场景还是采集的网页数据的存储,日志信息的存储,不需要完全结构化的应用。hbase 是 OLTP应用为主。 hive不一样,针对OLAP应用,底层不是hbase(支持么?),而是hdfs。存储靠hdfs,所以所谓的hive表,就是纯逻辑表,只是表的定义,即表的元数据。hive告诉机器,如何将数据文件解析,然后结构化为一张数据库表,并提供sql查询。hive一般用于查询分析统计,而不是其他的CUD操作,他去做增量实时同步相当困难。 hive是基于MR处理数据,MR是基于行的处理,hbase是基于列的处理,适合大数据的随机访问。hbase的表是稀疏的存储,用户可以给行定义各种不同的列,而hive是稠密的,定义了多少列,那么每一行都有存储固定列数的数据。hive因为是MR,所以数据处理不能低延迟,而hbase支持实时查询。hive不提供 row-level的更新,他适合的是 append-only的数据批处理,比如日志。而hbase,支持row-level的更新。hql是完整的sql实现,分析历史数据绝佳

Firebase Database Structure - Users, Groups and Lists

泄露秘密 提交于 2019-12-25 17:16:05
问题 I am planning a mobile application to use Firebase as its database/authentication provider mainly because I have found the authentication really easy to implement and also because of the apps nature. The app itself revolves around users in groups. Within each group is a range of data that will be accessible by every user in that group. I am wanting some feedback on my proposed firebase database structure and if there is anything I should do differently or could do better. Current proposed

搭建redis集群

笑着哭i 提交于 2019-12-25 14:03:56
什么是Redis集群 简介 Redis是一个快速高效的NoSQL型数据库,由于其基于内存存储、单线程、多路IO复用的特性,其QPS可以达到惊人的100000+(官方数据),但是即使有这么高的速度,在中国这么大的网民基数环境下,也存在着性能瓶颈。 首先抛开服务器故障不谈,Redis集群首先可以使Redis性能得到线性提高,这是毋庸置疑的,其次Redis集群除了解决了效率问题,还可以解决服务器宕机造成的数据丢失问题,当某个Redis节点宕机,剩下的节点会继续工作,并不会影响整体集群的使用,从而实现 高可用 。 Redis单机模式有什么问题 单机故障 在单机模式下的Redis,我们的应用中所有需要缓存的数据都依赖一台Redis服务器,应用的流量小可能看不出什么问题,但是随着应用越来越大,流量越来越大,如果出现服务器宕机或者断电的状况,那么我们的应用整个一个缓存层在一段时间内(重启)都将不复存在。 先不谈基于Redis的分布式Session可能造成的问题,如果恰好遇上流量高峰,这些流量直接打在数据库上,我们知道数据库的IO效率远不及Redis,这将大大提高应用负载,容易出现数据库服务器的宕机,从而造成应用的宕机。 由此看来,单机版Redis如果出现故障,将有可能引起一系列的连锁反应,造成不可逆的损失。 容量瓶颈 我们知道Redis是基于内存存储的一个NoSQL数据库

四种重要的非关系型数据库

妖精的绣舞 提交于 2019-12-25 13:39:07
Hbase 列式存储以流的方式在列中存储所有的数据 。对于任何记录,索引都可以快速地获取列上的数据;列式存储支持行检索,但这需要从每个列获取匹配的列值,并重新组成行。HBase(Hadoop Database)是一个高可靠性、高性能、面向列、可伸缩的分布式存储系统,利用HBase技术可在廉价PC Server上搭建起大规模结构化存储集群。HBase是Google BigTable的开源实现,模仿并提供了基于Google文件系统的BigTable数据库的所有功能。HBase可以直接使用本地文件系统或者Hadoop作为数据存储方式,不过为了提高数据可靠性和系统的健壮性,发挥HBase处理大数据量等功能,需要使用Hadoop作为文件系统。HBase仅能通过主键(row key)和主键的range来检索数据,仅支持单行事务,主要用来存储非结构化和半结构化的松散数据。 Hbase中表的特点:大,稀疏,面向列 Hadoop生态系统中的各层系统 HBase位于结构化存储层; HDFS为HBase提供了高可靠性的底层存储支持; MapReduce为HBase提供了高性能的计算能力; Zookeeper为HBase提供了稳定服务和失败恢复机制; Pig和Hive还为HBase提供了高层语言支持,使得在HBase上进行数据统计处理变的非常简单;

querying part of array key in couchDB view

旧街凉风 提交于 2019-12-25 08:29:26
问题 I currently have a document called beacon_logs, and it logs every time I walk into range of a beacon. The data looks similar to this: { "_id": "00198cd8f0fc510dbad06bf24e93f55b", "_rev": "1-e90f025935847b0412923e4ba472cf2a", "device": "gwen", "beaconUUID": "123", "distance": "0.0", "timestamp": 1487443924 }, { "_id": "00198cd8f0fc510dbad06bf24e93f55c", "_rev": "1-e90f025935847b0412923e4ba472cf2a", "device": "gwen", "beaconUUID": "123", "distance": "0.1", "timestamp": 1487443925 }, { "_id":

Is CouchDB on Android needed for Users of App?

Deadly 提交于 2019-12-25 08:14:46
问题 Im Trying to use CouchDb as a NoSQL database and my main purpose is to create an application on android which use couchDB instead of sqlite! And I want to use this database locally , so with no server connection! I have seen that you need to buy this on android market to use it! I'm wondering if I'm going to use this should all the users of my application by couchDB first in android market to be able to use my application? or somehow it will be included? How does this thing work? Is there

RxJava data from DB with onscreen list

杀马特。学长 韩版系。学妹 提交于 2019-12-25 08:04:57
问题 I've just begun to learn RxJava and I'm a little bit lost. My scenario is the following: A local NoSQL key-value database where I store some data. The problem is that the endpoint can add data to this DB and also the user can delete some of it. I'm displaying this data as an on-screen list (RecyclerView). I'd like to know what is the best approach to always know what's the most up to date data from the DB in a single place so I can update the UI accordingly. 回答1: What you're looking for is a

NoSQL Database for real-time, two-player Facebook Game

丶灬走出姿态 提交于 2019-12-25 07:41:12
问题 I am in the middle of developing a real-time, two player and turn-based Facebook Game. I have almost done the JavaScript code that includes the mechanics of the game but I still don't have the game implemented as two player and real time. I have read some articles and asked some questions that say that MySQL database is not what I need. I need to use NoSQL. I want to ask for suggestions and these are the things to be considered: Players are on Facebook so I need to display their friends, and

Cypher - get relationships with start node id, end node id and type

江枫思渺然 提交于 2019-12-25 07:20:05
问题 I have the type and the id for the start and end node of a relationship. I would like a query that returns all the possible actions. I have tried this MATCH (a)-[r]-(b) WHERE id(a)=1 AND id(b)=2 RETURN *; But it doesn't work. Solution I use GrapheneDB. Usually GrapheneDB presents the system node id on the node graphic but when you have an attribute id it presents that instead. When I ran the query I was using the graphic id which wasn't actually the system id so id(a) didn't give the expected