首页 \ 问答 \ 面向列的NoSQL与文档导向不同?(How does column-oriented NoSQL differ from document-oriented?)

面向列的NoSQL与文档导向不同?(How does column-oriented NoSQL differ from document-oriented?)

我读过的三种类型的NoSQL数据库是键值,面向列和面向文档的。

键值非常简单 - 一个具有普通值的键。

我已经看到面向文档的数据库被描述为像键值,但该值可以是一个结构,像一个JSON对象。 每个“文档”可以具有与另一个相同的键的全部,部分或不相同的键。

列导向似乎非常像面向文档,因为您不指定结构。

那么这两者之间有什么区别呢,为什么要用另外一个呢?

我特意看了MongoDB和Cassandra。 我基本上需要一个可以改变的动态结构,但不影响其他值。 同时,我需要能够搜索/过滤特定的密钥并运行报告。 通过CAP,AP对我来说最重要。 数据可以“最终”在节点之间同步,只要没有冲突或数据丢失。 每个用户都会得到自己的“表”。


The three types of NoSQL databases I've read about is key-value, column-oriented, and document-oriented.

Key-value is pretty straight forward - a key with a plain value.

I've seen document-oriented databases described as like key-value, but the value can be a structure, like a JSON object. Each "document" can have all, some, or none of the same keys as another.

Column oriented seems to be very much like document oriented in that you don't specify a structure.

So what is the difference between these two, and why would you use one over the other?

I've specifically looked at MongoDB and Cassandra. I basically need a dynamic structure that can change, but not affect other values. At the same time I need to be able to search/filter specific keys and run reports. With CAP, AP is the most important to me. The data can "eventually" be synced across nodes, just as long as there is no conflict or loss of data. Each user would get their own "table".


原文:https://stackoverflow.com/questions/7565012
更新时间:2022-11-30 13:11

最满意答案

编辑:

要在本地存储库中工作并将其推送到服务器上的远程存储库,请执行以下操作:

  • ssh root@Laravel
  • git --bare init
  • 在您的本地机器上:
  • git init
  • git remote add origin ssh://root@laravel/var/www/html
  • git add .
  • git commit -m "Your commit message"
  • git push origin master

然后,每次需要将更改推送到laravel服务器时,再次使用最后三个命令提交并推送。


原始答案:您似乎正在尝试从github复制文件,但您在github上的存储库是空的。

如果要将本地文件夹的内容添加到github存储库,则必须执行以下操作:

  • git add .
  • git commit -m "A commit message"
  • git push origin master

这会将当前目录中的所有文件添加到本地存储库并创建提交。 之后它会将提交推送到github。

请记住, git clone用于从您指定的存储库中“下载”,您必须使用git push origin master将您的存储库上传到github。


EDIT:

To work in a local repository and push it to your remote on the server do the following:

  • ssh root@Laravel
  • git --bare init
  • on your local machine:
  • git init
  • git remote add origin ssh://root@laravel/var/www/html
  • git add .
  • git commit -m "Your commit message"
  • git push origin master

Then everytime you need to push changes to your laravel server, commit and push using the last three commands again.


Original answer: It appears you are trying to copy the files from github but your repository on github is empty.

If you want to add the contents of your local folder to your github repository, you will have to do the following:

  • git add .
  • git commit -m "A commit message"
  • git push origin master

This will add all the files in the current directory to the local repository and create a commit. Afterwards it will push the commit to github.

Keep in mind that git clone is used to "download" from the repository you specify, you will have to use git push origin master to upload your repository to github.

相关问答

更多
  • 我没有对此进行测试,但鉴于AWS CodeCommit也提供了凭证帮助,并且command not found错误,我会假设您受到SourceTree知识库文章中概述的相同问题的影响。 凭证帮助“git:'credential-osxkeychain'不是git命令。请参阅'git --help'。“ : 发生错误[...]是因为Git调用此帮助程序并且找不到它意味着它已被定义但在PATH上找不到。 就SourceTree而言,从版本1.6.3开始,这无需担心。 有两种方法可以阻止这种情况发生。 不推荐,但 ...
  • 好吧,我想我已经找到了所有的部分。 为了帮助人们获得他们想要的东西,这里是解决方案: 确保在config文件中配置了要自动加载的UseKeychain并设置了UseKeychain和AddKeysToAgent 确保从终端连接到那些配置定义的主机!! 创建一个LaunchAgent来运行ssh-add -A以自动重新加载Keychain存储的密钥 好了,你知道该怎么做了,这就是'为什么'。 这肉 正如我的问题所解释的,最近,每当我重新启动时,我(错误地)认为系统丢失了我的私钥。 它并没有失去它们,只是忽略了 ...
  • 编辑: 要在本地存储库中工作并将其推送到服务器上的远程存储库,请执行以下操作: ssh root@Laravel git --bare init 在您的本地机器上: git init git remote add origin ssh://root@laravel/var/www/html git add . git commit -m "Your commit message" git push origin master 然后,每次需要将更改推送到laravel服务器时,再次使用最后三个命令提交并推送。 ...
  • 经过几天的研究,我终于找到了解决方案。 正如我在我的问题中提到的,Sourcetree使用Putty,因为它是SSH代理,在我的情况下不起作用。 我需要做的是告诉SourceTree改为使用OpenSSH。 为了做到这一点,必须: 工具>选项 在“SSH客户端配置”下的常规选项卡下,选择OpenSSH而不是Putty / Plink。 并确保你指出了你用来验证服务器上的git的SSH密钥; 在我的情况〜/ .ssh / id_rsa 就这样。 After days of research I finally ...
  • 在我的情况下,我必须在远程主机的ssh配置中启用TCP转发: AllowTCPForwarding yes 而且我还必须授予来自127.0.0.1(而不是从'locahost')的用户连接的所有权限: grant all privileges on some_db.* to some_user@127.0.0.1 identified by 'secret'; In my case I had to enable TCP forwarding in the ssh configuration of th ...
  • 看起来我发现了这个问题。 问题在于我最初试图从控制台运行单元测试,并期望PHPStorm在单元测试中的断点处停止。 这种情况没有发生,但是PHPStorm在PHPUnit.phar文件的第一行代码之前停止了,并且遗憾的是这种情况持续发生。 也就是说,当PHPStorm验证php设置时,它似乎执行了一些PHP命令,该命令要么等待多长时间,直到其他php线程被释放或在第一行执行之前被暂停。 所以,我重新启动了PHPStorm,停用了听xdebug连接,并且事情开始按照问题中提到的JetBrains文档开始工作。 ...
  • 是 - 您可以创建SSH外部工具条目 ,该条目将通过SSH连接执行您的命令。 创建完成后,您可以在Settings/Preferences | Keymap为此类工具指定自定义快捷方式 Settings/Preferences | Keymap 。 请记住,此类命令将在单独的SSH连接中运行,而不是在当前终端中运行。 阅读更多的链接很少(一般概念/确切步骤): https://confluence.jetbrains.com/display/PhpStorm/Running+External+Tools+i ...
  • 安装新的PHP之后,如果启动php-fpm而没有正确配置它,它默认监听端口9000.这是你需要编辑的发行版中的'stock'php -fpm.conf: /usr/local/etc/php/5.5/php-fpm.conf ... ; '[::]:port' - to listen on a TCP socket to all addresses ; (IPv6 and IPv4-mapped) on a specific ...
  • 更新我的嵌入式git版本根据附加的链接为我修复了这个问题。 我从版本1.9.something到2.6.1 Atlassian答案 Updating my embedded git version fixed this issue for me as per the attached link. I went from version 1.9.something to 2.6.1 Atlassian Answers
  • 根据您的xdebug日志,您在设置中遇到错误而不是在SSH中。 基于你的phpinfo()输出的xdebug部分你需要设置xdebug.remote_connect_back = 0 (或off - 相同的含义)。 还要确保xdebug.remote_host = localhost 。 使用当前设置,xdebug尝试连接回请求来自IP的TCP 9000,而对于SSH隧道工作,您需要将其连接到本地TCP 9000(并且SSH将此类连接隧道连接回本地计算机绕过防火墙/路由器)。 Accordingly to ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)