Discuss Scratch

EDawg2011
Scratcher
1000+ posts

We need a replacement for ScratchDB.

It keeps breaking, and it impacts sites like postpercent and Ocular, so we need a replacement; can anyone help us code it?
I'm not a good ATer.
abcde26
Scratcher
1000+ posts

We need a replacement for ScratchDB.

Coding it would take a long time. It's not a good solution.
i_eat_coffee
Scratcher
1000+ posts

We need a replacement for ScratchDB.

Yeah, I can make a replacement tomorrow
EDawg2011
Scratcher
1000+ posts

We need a replacement for ScratchDB.

i_eat_coffee wrote:

Yeah, I can make a replacement tomorrow
Cool. Can you send me the GitHub once it's done?
bruh not old enough for github account
abcde26
Scratcher
1000+ posts

We need a replacement for ScratchDB.

EDawg2011 wrote:

i_eat_coffee wrote:

Yeah, I can make a replacement tomorrow
Cool. Can you send me the GitHub once it's done?
bruh not old enough for github account
Funny enough, I HAVE ONE.
Redstone1080
Scratcher
1000+ posts

We need a replacement for ScratchDB.

Funnily enough, @josueart and I were working on something similar for Snazzle.

shameless plug moment hehe

Last edited by Redstone1080 (Feb. 10, 2024 11:13:15)

ajskateboarder
Scratcher
1000+ posts

We need a replacement for ScratchDB.

abcde26 wrote:

Coding it would take a long time. It's not a good solution.
Even if someone had the time to build it, I'm guessing you'd need a lot of storage
Pufferfish_Test
Scratcher
500+ posts

We need a replacement for ScratchDB.

have fun finding >6TB (iirc) of storage.
Redstone1080
Scratcher
1000+ posts

We need a replacement for ScratchDB.

Pufferfish_Test wrote:

have fun finding >6TB (iirc) of storage.
I use a third of that for storing my games, and you can actually go on Amazon and get 8TB hard drives (dunno about SSDs)
davidtheplatform
Scratcher
500+ posts

We need a replacement for ScratchDB.

Pufferfish_Test wrote:

have fun finding >6TB (iirc) of storage.
As of like 2021 scratchdb had 400gb of data
TimMcCool
Scratcher
100+ posts

We need a replacement for ScratchDB.

Maybe @DatOneLefty could make the code open source so someone else can try to host it. If they are still actively developing it, they'll probably fix the problems soon tho.

Last edited by TimMcCool (Feb. 12, 2024 14:55:39)

davidtheplatform
Scratcher
500+ posts

We need a replacement for ScratchDB.

I'm sort of making a replacement* that works but it's very basic right now, if anyone wants me to host it I can

* really it's just a cache/proxy for scratchdb
i_eat_coffee
Scratcher
1000+ posts

We need a replacement for ScratchDB.

davidtheplatform wrote:

* really it's just a cache/proxy for scratchdb
so, literally scratchdb but it's slower?
davidtheplatform
Scratcher
500+ posts

We need a replacement for ScratchDB.

i_eat_coffee wrote:

davidtheplatform wrote:

* really it's just a cache/proxy for scratchdb
so, literally scratchdb but it's slower?
If the thing you request isn't cached, yes. If it is then it'll be much faster, since scratchdb takes >10 seconds to do anything and the cache is basically instant.

The other advantage is that it's more stable and is actively maintained.
Steve0Greatness
Scratcher
1000+ posts

We need a replacement for ScratchDB.

davidtheplatform wrote:

If the thing you request isn't cached, yes. If it is then it'll be much faster, since scratchdb takes >10 seconds to do anything and the cache is basically instant.

The other advantage is that it's more stable and is actively maintained.
How long does the cache last? A week? A month? A year? What if ScratchDB goes down for an extended period? Isn't there a point where it gets so inaccurate, it's not worth it anymore?
medians
Scratcher
1000+ posts

We need a replacement for ScratchDB.

Redstone1080 wrote:

Pufferfish_Test wrote:

have fun finding >6TB (iirc) of storage.
I use a third of that for storing my games, and you can actually go on Amazon and get 8TB hard drives (dunno about SSDs)
Really? I thought 500GB was a lot for 1 hard drive (and a few gigabytes for one file too)

Last edited by medians (Feb. 14, 2024 02:03:03)

davidtheplatform
Scratcher
500+ posts

We need a replacement for ScratchDB.

medians wrote:

Redstone1080 wrote:

Pufferfish_Test wrote:

have fun finding >6TB (iirc) of storage.
I use a third of that for storing my games, and you can actually go on Amazon and get 8TB hard drives (dunno about SSDs)
Really? I thought 500GB was a lot for 1 hard drive (and a few gigabytes for one file too)
500gb is relatively small. You can buy a 24tb hard drive for $300


Steve0Greatness wrote:

davidtheplatform wrote:

If the thing you request isn't cached, yes. If it is then it'll be much faster, since scratchdb takes >10 seconds to do anything and the cache is basically instant.

The other advantage is that it's more stable and is actively maintained.
How long does the cache last? A week? A month? A year? What if ScratchDB goes down for an extended period? Isn't there a point where it gets so inaccurate, it's not worth it anymore?
The cache lasts forever (or until it gets overwritten by new data). You decide how old the data you get can be before it gets refreshed with an http header, or it defaults to something like 30 seconds (i haven't decided yet). If ScratchDB goes down you get the newest cached data. Old data is better than no data in most cases, and if you only want new data there will be an option to return an error instead of old data.
medians
Scratcher
1000+ posts

We need a replacement for ScratchDB.

davidtheplatform wrote:

medians wrote:

Redstone1080 wrote:

Pufferfish_Test wrote:

have fun finding >6TB (iirc) of storage.
I use a third of that for storing my games, and you can actually go on Amazon and get 8TB hard drives (dunno about SSDs)
Really? I thought 500GB was a lot for 1 hard drive (and a few gigabytes for one file too)
500gb is relatively small. You can buy a 24tb hard drive for $300
Okay, I haven’t been paying attention in years and my old mac had 1TB, which I thought was a lot tool
davidtheplatform
Scratcher
500+ posts

We need a replacement for ScratchDB.

medians wrote:

davidtheplatform wrote:

medians wrote:

Redstone1080 wrote:

Pufferfish_Test wrote:

have fun finding >6TB (iirc) of storage.
I use a third of that for storing my games, and you can actually go on Amazon and get 8TB hard drives (dunno about SSDs)
Really? I thought 500GB was a lot for 1 hard drive (and a few gigabytes for one file too)
500gb is relatively small. You can buy a 24tb hard drive for $300
Okay, I haven’t been paying attention in years and my old mac had 1TB, which I thought was a lot tool
It is for a laptop, the 24tb ones are mostly for servers
davidtheplatform
Scratcher
500+ posts

We need a replacement for ScratchDB.

davidtheplatform wrote:

I'm sort of making a replacement* that works but it's very basic right now, if anyone wants me to host it I can

* really it's just a cache/proxy for scratchdb
Update: it’s hosted at mercury.davidtheplatform.eu.org. Just replace scratchdb.lefty.one with that url and keep everything after the / the same

Powered by DjangoBB