The Wayback Machine - https://web.archive.org/web/20200705193409/https://github.com/topics/sharding
Skip to content
#

sharding

Here are 170 public repositories matching this topic...

reisner
reisner commented Apr 14, 2016

Hi there,

I have a codebase that uses establish_connection. I used Octopus in another (unrelated) part of my app. I did not notice that the parts of the code that used the connection from establish_connection were affected until I shipped to production. After looking through the codebase I realized that octopus_establish_connection actually says I do NOT want to use octopus for this connec

harmony
JBKahn
JBKahn commented Mar 19, 2017

I finished a sqlite version:

from itertools import cycle
from datetime import datetime
import pytz

def create_function_for_sharded_id(shard_id):
    get_next_seq_id = cycle(range(1024))
    og_epoch_datetime = datetime.utcfromtimestamp(0).replace(tzinfo=pytz.utc)

    epoch_datetime = datetime(2016, 10, 19, 17, 54, 24, tzinfo=pytz.UTC)
    epoch_milliseconds = (epoch_dateti

Improve this page

Add a description, image, and links to the sharding topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sharding topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.