Live data from Hacker News

Bluesky migrates to single-tenant SQLite

github.com

111–120 of 247 posts

Re: Bluesky migrates to single-tenant SQLite

#111
post #90

Earlier quoted context omitted.

Any more?

bsky-social-lbjkg-gcxs4 bsky-social-zigwm-f3qpq bsky-social-2jlu7-apy5a bsky-social-6ct52-4egmz bsky-social-cy64m-53sqn

Maybe if you stop posting them with the easily-greppable first part they won't be so easy to scrape.

Re: Bluesky migrates to single-tenant SQLite

#113
post #16

What do they mean by "Since SQLite does not support concurrent transactions" - it supports them, as long as you don't access the .db file through a file share (UNC, or NFS, etc) - https://www.sqlite.org/wal.html I've been using this to update/read db from multiple threads/processes on the same machine. You can also do snapshotting with the sqlite backup API, if you want consistent view, and to not hold on transaction…

Nope! I was mistaken - it's really multiple readers, single writer - Probably I was assuming things the whole time, and did not spent enough time thoroughly checking - granted most of the db's I've done with sqlite were more about reading than writing.

So stand corrected!

Re: Bluesky migrates to single-tenant SQLite

#115

Earlier quoted context omitted.

Either people were really prepared for these codes to appear, or they are being scraped. Regardless, they're all gone

It seems a temporary, anonymous, private, receive-only dropbox(not the USB drive replacement kind) on the Internet is an unsolved problem. It doesn't have to be completely out-of-band like email, could be just an encrypted public reply by `cat | base64 -d | openssl rsautl -decrypt -inkey temp.key`, so long up to few bits(70 in this instance) of encrypted content would be allowed on a platform.

piracy websites were using base64 encoding for this purpose a while ago, but now it seems they moved on to a proprietary algorithm

Re: Bluesky migrates to single-tenant SQLite

#116
post #99
post #76

Earlier quoted context omitted.

They have over 1.8 million users currently, or do you mean PDSes specifically? Federation is in open beta on a test network, you can try it out today if you'd like.

I have been on the wait list since they launched. They seem to mostly rely on invites.

I’ve some invites lying around. DM me if you want one.

Re: Bluesky migrates to single-tenant SQLite

#117
post #76
post #62

Cool, but maybe let people actually use your service before everyone forgets what it is?

They have over 1.8 million users currently, or do you mean PDSes specifically? Federation is in open beta on a test network, you can try it out today if you'd like.

> They have over 1.8 million users currently

How many of them active?

Re: Bluesky migrates to single-tenant SQLite

#118
post #99
post #76

Earlier quoted context omitted.

They have over 1.8 million users currently, or do you mean PDSes specifically? Federation is in open beta on a test network, you can try it out today if you'd like.

I have been on the wait list since they launched. They seem to mostly rely on invites.

  bsky-social-scbch-eolha
  bsky-social-fs26y-d6gnv
  bsky-social-2lx5u-ntrdv
  bsky-social-hboq7-dyuue
  bsky-social-b2v3f-3a23q

Re: Bluesky migrates to single-tenant SQLite

#119

Love SQLite - in general there are many challenges with a schema or database per tenant setup of any kind though. Consider the luxury of row-level security in a shared instance where your migration either works or rolls back. Not now! If you are doing a data migration and failed to account for some unexpected data, now you have people on different schema versions until you figure it out. Now, yes, if you are at shard…

> If you are doing a data migration and failed to account for some unexpected data, now you have people on different schema versions until you figure it out.

That shouldn't be a big issue. Any service large/complex enough to care does the schema upgrades in phases, so it's 1. Make code future compatible. 2. Migrate data. 3. Remove old schema support.

So typically it should be safe to run between steps 1 and 2 for a long time. (Modulo new bugs of course) As an ops-y person I'm comfortable with the system running mid-migration as long as the steps as described are used.

Post reply on HN