7
dstm
3y

Background: I am currently working with a DB that has websocket functionality ("notify a client on insert/etc."). However, you do have to whitelist tables in order to use them with sockets.

I wanted to optimize my code and didn't want to mess with my coworkers dev-data, therefore I duplicated the table. After improving some small things I noticed that the interface does not change with new socket data. I have spent the last hour or so trying to figure out where I broke it.

I just realized that I forgot to whitelist that duplicated table 😐 Most relieving moment today 😅

Bonus side effect: The code is much cleaner now since I refactored a lot of the realtime-logic in order to understand it/fix the bug.

Comments
  • 3
    What's the db?

    I'm curious because I'm planning a project that uses rethinkdb and wanted to review how others accomplish this.
  • 1
    @sariel

    I thought about rethink as well, but decided to use supabase - mostly because of the simplicity of the setup. Really happy so far, but not much experience with it yet.
  • 1
    @dstm thanks! I'll check it out.

    I liked rethink because it seems to have a stable community that's growing and I needed something that was distributed across multiple devices with minimal config.

    It also had some c libs already written for it that I don't have to maintain 😜
Add Comment