- Read every row in the table
- No reading of index. Reading from indexes is also expensive.
Wensheng Wang, 10/1/11
Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html
When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes:
In this tutorial we are going to build a Twitter clone using Django and GetStream.io, a hosted API for newsfeed development. We will show you how easy is to power your newsfeeds with GetStream.io. At the end of this tutorial we will have a Django app with a profile feed, a timeline feed, support for following users, hashtags and mentions.
I assume that you are familiar with Django. If you're new to Django the [official tutorial] (https://docs.Djangoproject.com/en/1.7/intro/install/) explains it very well.
Bootstrap the Django application
# create a redis app | |
flynn create --remote "" redis | |
# create a release using the latest (at the time of writing) Docker Redis image | |
flynn -a redis release add -f config.json "https://registry.hub.docker.com?name=redis&id=868be653dea3ff6082b043c0f34b95bb180cc82ab14a18d9d6b8e27b7929762c" | |
# scale the server to one process. This may time out initially as the server pulls the image, but watch "flynn -a redis ps" and should come up. | |
flynn -a redis scale server=1 | |
# redis should now be running in the cluster at redis.discoverd:6379 |
I hereby claim:
- I am vapopov on github.
- I am vapopov (https://keybase.io/vapopov) on keybase.
- I have a public key ASA25p8wbBSuMWXaDrhwQbY40MTVwpTg2Z9WOVGDctfQawo
To claim this, I am signing this object:
package main | |
import ( | |
"database/sql" | |
"errors" | |
"fmt" | |
_ "github.com/bmizerany/pq" | |
"os" | |
"regexp" | |
"strings" |
import asyncio | |
from concurrent import futures | |
import functools | |
import inspect | |
import threading | |
from grpc import _server | |
def _loop_mgr(loop: asyncio.AbstractEventLoop): |
def solution(S, T): | |
S = 'a10' | |
T = '10a' | |
any_lenth_S = 0 | |
any_lenth_T = 0 |
lncli --no-macaroons connect 03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8@testnet-lnd.htlc.me | |
{ | |
} | |
~/g/s/g/l/replenish-server ❯ lncli --no-macaroons walletbalance | |
{ | |
"total_balance": "51639731", | |
"confirmed_balance": "51639731", | |
"unconfirmed_balance": "0" | |
} |