Tuesday, February 2, 2016
COUCHBASE - how to create primary index for N1QL
C:\Users\andriypa>cbq
Couchbase query shell connected to http://localhost:8093/ . Type Ctrl-D to exit.
cbq> CREATE PRIMARY INDEX ON `default`;
{
"requestID": "65230d77-9d8f-4f13-9590-776ad6309f9c",
"signature": null,
"results": [
],
"status": "success",
"metrics": {
"elapsedTime": "3.1251858s",
"executionTime": "3.1241875s",
"resultCount": 0,
"resultSize": 0
}
}
Couchbase query shell connected to http://localhost:8093/ . Type Ctrl-D to exit.
cbq> CREATE PRIMARY INDEX ON `default`;
{
"requestID": "65230d77-9d8f-4f13-9590-776ad6309f9c",
"signature": null,
"results": [
],
"status": "success",
"metrics": {
"elapsedTime": "3.1251858s",
"executionTime": "3.1241875s",
"resultCount": 0,
"resultSize": 0
}
}
GIT - create a new remote branch from the local one
First, you must create your branch locally
git checkout -b your_branch
After that, you can work locally in your branch, when you are ready to share the branch, push it. The next command push the branch to the remote repository origin and tracks it
git push -u origin your_branch
Teammates can reach your branch, by doing:
git fetch
git checkout origin/your_branch
http://stackoverflow.com/questions/1519006/how-do-you-create-a-remote-git-branch
HTTP 2 - Chrome dev tools settings for view live HTTP/2 sessions
In order to capture HTTP/2 sessions in Chrome for live view enter this url in Chrome and choose HTTP/2 option:
chrome://net-internals/#http2
chrome://net-internals/#http2
Subscribe to:
Posts (Atom)