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

    HarryET

    10/25/2021, 10:43 AM
    and table references
  • v

    VuNguyen

    10/25/2021, 10:44 AM
    so i have should a table
    characters
    yea?
  • h

    HarryET

    10/25/2021, 10:44 AM
    yeah
  • h

    HarryET

    10/25/2021, 10:45 AM
    Have a look at examples
  • v

    VuNguyen

    10/25/2021, 10:45 AM
    i mean
  • v

    VuNguyen

    10/25/2021, 10:45 AM
    can i just use json type?
  • v

    VuNguyen

    10/25/2021, 10:46 AM
    cuz i have like 2000 rows already doing this
  • h

    HarryET

    10/25/2021, 10:46 AM
    if you really wanted but i wouldn't recoment it
  • v

    VuNguyen

    10/25/2021, 10:46 AM
    im kinda lazy to update
  • v

    VuNguyen

    10/25/2021, 10:46 AM
    i see
  • h

    HarryET

    10/25/2021, 10:46 AM
    less performance
  • v

    VuNguyen

    10/25/2021, 10:47 AM
    how can i bulk update?
  • h

    HarryET

    10/25/2021, 10:47 AM
    like move from json to the references?
  • v

    VuNguyen

    10/25/2021, 10:47 AM
    yea
  • h

    HarryET

    10/25/2021, 10:47 AM
    it would depend on your implementation of it
  • v

    VuNguyen

    10/25/2021, 10:48 AM
    does upsert update ur data when it exists
  • h

    HarryET

    10/25/2021, 10:48 AM
    uhhhh not 100%
  • h

    HarryET

    10/25/2021, 10:48 AM
    the reference is very good
  • h

    HarryET

    10/25/2021, 10:48 AM
    https://supabase.io/docs/reference/javascript/supabase-client
  • v

    VuNguyen

    10/25/2021, 10:49 AM
    i have few columns that use json array instead of foreign key
  • v

    VuNguyen

    10/25/2021, 10:49 AM
    well i think i have to change them
  • h

    HarryET

    10/25/2021, 10:53 AM
    Maybe yeah
  • h

    HarryET

    10/25/2021, 10:53 AM
    also @User who do I speak to about getting experience that is talked about in #867318180615421973?
  • v

    VuNguyen

    10/25/2021, 10:54 AM
    uh i think ill change from json to jsonb
  • v

    VuNguyen

    10/25/2021, 10:54 AM
    cuz im lazy
  • v

    VuNguyen

    10/25/2021, 10:54 AM
    👉 👈
  • v

    VuNguyen

    10/25/2021, 10:57 AM
    @User btw i want RLS allow read, write and update (in my server only), but i want RLS allow read only in client
  • v

    VuNguyen

    10/25/2021, 10:57 AM
    is there anyway to do that
  • h

    HarryET

    10/25/2021, 10:57 AM
    RLS donsen't apply with service key
  • h

    HarryET

    10/25/2021, 10:57 AM
    so use service key on server - DO NOT SHARE WITH CLIENT
1...123124125...392Latest