https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • m

    moz

    11/20/2021, 9:41 AM
    Not related to the schema
  • h

    hips

    11/20/2021, 9:41 AM
    ah I see
  • h

    hips

    11/20/2021, 9:42 AM
    this would depend on your frontend setup?
  • h

    hips

    11/20/2021, 9:42 AM
    nothing's stopping you from making state changes before firing your network request
  • h

    hips

    11/20/2021, 9:43 AM
    or you could integrate something like rxdb
  • m

    moz

    11/20/2021, 9:44 AM
    Except it's not guaranteed eventually. With a Firebase app I can implement a todo system where the user can add and delete before a network request ever fires, say with no/poor internet. With a rest only approach I need to wait for the insert to complete before allowing the user to delete.
  • m

    moz

    11/20/2021, 9:44 AM
    In order to make the app really feel realtime
  • h

    hips

    11/20/2021, 9:44 AM
    no you don't?
  • h

    hips

    11/20/2021, 9:44 AM
    you can do whatever you want locally?
  • h

    hips

    11/20/2021, 9:45 AM
    there's nothing that prevents you from editing your state and async sending a network request
  • h

    hips

    11/20/2021, 9:45 AM
    or even adding it to some queue to send later
  • m

    moz

    11/20/2021, 9:46 AM
    Only the database enforces relations, and generally has validation.
  • h

    hips

    11/20/2021, 9:46 AM
    sure
  • m

    moz

    11/20/2021, 9:46 AM
    Even the IDs are generated on the database side using auto increment
  • h

    hips

    11/20/2021, 9:47 AM
    sounds like you're looking for an offline db
  • h

    hips

    11/20/2021, 9:47 AM
    ^
  • m

    moz

    11/20/2021, 9:48 AM
    Yeah sorry for the confusion. My question was if supabase will support realtime sync like Firebase does?
  • h

    hips

    11/20/2021, 9:49 AM
    I wouldn't expect this short term
  • m

    McLean 25

    11/20/2021, 6:21 PM
    Does subscribing to table updates not do what you're looking for? https://supabase.com/docs/reference/javascript/subscribe
  • m

    moz

    11/20/2021, 8:00 PM
    That's for reading, sync would be more for writing.
    g
    m
    • 3
    • 8
  • g

    garyaustin

    11/20/2021, 8:30 PM
    does supabase synchronized caching
  • k

    kingrayhan

    11/20/2021, 8:43 PM
    How do I update password with confirming old password?
    g
    d
    s
    • 4
    • 13
  • d

    dasbardgoet

    11/20/2021, 9:17 PM
    Is the server/api down?
  • k

    kingrayhan

    11/20/2021, 9:35 PM
    why this server is too much inactive?
  • b

    bokolesnik

    11/20/2021, 9:44 PM
    have the same problem
  • d

    dasbardgoet

    11/20/2021, 9:55 PM
    good to know that im not the only one
  • b

    bokolesnik

    11/20/2021, 10:02 PM
    restarting the server resolved the problem
  • b

    bokolesnik

    11/20/2021, 10:04 PM
    but now, when I use the supabase js client, it throws an error, that wasn't before:
    message: 'FetchError: invalid json response body at https://id.supabase.co/rest/v1/tableName?select=* reason: Unexpected token < in JSON at position 0'
  • b

    bokolesnik

    11/20/2021, 10:08 PM
    that's why
  • u

    user

    11/20/2021, 10:44 PM
    For the "inactivity" period on free supabase postgres DB, my application purely uses the
    postgres
    user to make direct PG connections, it does issue reads and write into the DB continuously, but I don't use the supabase rest API to access, so does raw DB activity count towards the inactivity?
1...139140141...392Latest