面向列的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
最满意答案
编辑:
要在本地存储库中工作并将其推送到服务器上的远程存储库,请执行以下操作:
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 usegit 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服务器时,再次使用最后三个命令提交并推送。 ...
-
从共享主机(Hostgator)添加远程回购到SourceTree(Add Remote Repo From Shared Hosting (Hostgator) To SourceTree)[2022-05-21]
经过几天的研究,我终于找到了解决方案。 正如我在我的问题中提到的,Sourcetree使用Putty,因为它是SSH代理,在我的情况下不起作用。 我需要做的是告诉SourceTree改为使用OpenSSH。 为了做到这一点,必须: 工具>选项 在“SSH客户端配置”下的常规选项卡下,选择OpenSSH而不是Putty / Plink。 并确保你指出了你用来验证服务器上的git的SSH密钥; 在我的情况〜/ .ssh / id_rsa 就这样。 After days of research I finally ... -
Phpstorm。(Phpstorm. Can't access to mysql server through SSH tunnel (connection is closed by foreign host))[2023-08-08]
在我的情况下,我必须在远程主机的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和VM单元测试(PHPStorm and VM unit tests)[2023-05-02]
看起来我发现了这个问题。 问题在于我最初试图从控制台运行单元测试,并期望PHPStorm在单元测试中的断点处停止。 这种情况没有发生,但是PHPStorm在PHPUnit.phar文件的第一行代码之前停止了,并且遗憾的是这种情况持续发生。 也就是说,当PHPStorm验证php设置时,它似乎执行了一些PHP命令,该命令要么等待多长时间,直到其他php线程被释放或在第一行执行之前被暂停。 所以,我重新启动了PHPStorm,停用了听xdebug连接,并且事情开始按照问题中提到的JetBrains文档开始工作。 ... -
在PhpStorm中添加SSH操作(Add SSH action in PhpStorm)[2022-07-30]
是 - 您可以创建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 ...