https://www.prisma.io/ logo
Join Slack
Powered by
# orm-help
  • a

    Alan

    03/16/2020, 10:49 PM
    and as it fans out and scales, i've had it crash my cluster before
  • k

    Kyle Thomas

    03/17/2020, 12:22 AM
    Hi everyone 👋
  • k

    Kyle Thomas

    03/17/2020, 12:23 AM
    I've got a simple question on how to create an object with an empty array
  • k

    Kyle Thomas

    03/17/2020, 12:24 AM
    Previously I'd do:
    thing: { create: [] }
    but migrating to
    prisma2
    I'm not sure what I need to do here.
  • g

    Gwinyai Nyatsoka

    03/17/2020, 3:21 PM
    Is anyone aware of any limits to subscriptions in Prisma? We are using subscriptions for a chat feature in our app and we've noticed subscriptions probably don't get called 3 out of 10 times. We suspect a limit at this stage but just wondering if anyone has experienced this and if there are any work arounds.
    e
    f
    • 3
    • 4
  • j

    Jonathan

    03/17/2020, 3:48 PM
    Im aware that prisma1 questions get almost no answers, yet I'll try. How does one debug prisma 1's performance, e.g. notice whether there is some memory leak or anything. We notice that when performing certain operations, the server gets progressively more and more tired as this operation is executed again, the server gets more and more tired (hinting at a memory leak), yet I wouldnt know where to start debugging this
  • m

    Marcelo Lewin

    03/17/2020, 6:17 PM
    I’m looking for someone that knows Prisma pretty well and would like to chat on my podcast about it (give an overview of it). How it’s used, why using it, etc. If interested, please reach out to me via DM or at marcelo@themarcelolewin.com - My podcast is here - https://podcasts.apple.com/us/podcast/contentful-creators/id1502912455
  • a

    Alan

    03/17/2020, 8:47 PM
    Wanted to follow up to see if anyone's gotten Prisma worker nodes to purge cache on schema
  • a

    Alan

    03/17/2020, 8:48 PM
    for some of our pods it didn't seem like schema propagated properly
  • i

    Isaac Weber

    03/17/2020, 9:19 PM
    I could really use some help figuring out how to increment an integer.
  • i

    Isaac Weber

    03/17/2020, 9:19 PM
    Can’t find anything online
  • i

    Isaac Weber

    03/17/2020, 9:20 PM
    maybe I could
    executeRaw
    ?
  • i

    Isaac Weber

    03/17/2020, 9:35 PM
    2 db operations for this 😕
  • e

    Ethan Pursley

    03/17/2020, 9:47 PM
    can you just upsert?
  • a

    Alexander Selling

    03/18/2020, 9:43 AM
    Hey I'm really trying to find an excuse to try out prisma 😄
  • a

    Alexander Selling

    03/18/2020, 9:44 AM
    But I'm stuck with the document database Couchbase and I understand that Prisma isn't going to support Couchbase for quite some time, you need to use something popular like postgres etc..
  • a

    Alexander Selling

    03/18/2020, 9:45 AM
    My question is, can I just setup a repository layer + schema that prisma can use?
  • a

    Alexander Selling

    03/18/2020, 9:45 AM
    is it even worth trying to get a non-supported database to work with Prisma?
  • w

    windkomo

    03/18/2020, 1:05 PM
    has anyone managed to deploy a prisma 1 app (without subscriptions) to zeit now v2?
    j
    • 2
    • 1
  • a

    Arber

    03/18/2020, 3:38 PM
    Copy code
    type User {
      id: ID! @id
      name: String!
      email: String! @unique
      password: String!
      posts: [Post!]!
      userInfo: [Userinfo!]!
      dailyReports: [dailyReport!]!
      inEventCards: [Event!]!  @relation(name: "EventCardAddedBy")
      myEventCards: [Event!]! @relation(name: "EventCardsToUser")
    }
    
    type Comment {
      id: ID! @id
      createdAt: DateTime! @createdAt
      name: String
      text: String!
      addedBy: User!
      post: ID!
    ERROR: There is a relation ambiguity during the migration. The ambiguity is on a relation between Comment and User. Please name relations or change the schema in steps.
    • 1
    • 1
  • a

    Alan

    03/18/2020, 4:29 PM
    For those running Prisma in production and on the cloud, what type of machine type do you it running on?
    a
    • 2
    • 3
  • a

    Alan

    03/19/2020, 7:50 PM
    does anyone currently run prisma 1 at scale?
  • a

    Alan

    03/19/2020, 7:50 PM
    I'm having some issues with running at scale, even with 150+ replicas
  • e

    Ethan Pursley

    03/19/2020, 7:53 PM
    We are having the same issue.
  • e

    Ethan Pursley

    03/19/2020, 7:53 PM
    Prisma 1 just keeps crashing under very light load, we are running 20 replicas
  • o

    Omar Nasr

    03/19/2020, 9:14 PM
    This is interesting @Alan and @Ethan Pursley would you share some metrics about your loads and what you are running it on (vm’s with load-balancers, kubernetes ect ). Only if you’re comfortable with that of course
  • a

    Alan

    03/19/2020, 10:00 PM
    I'm currently running some load tests where there is a heavy read/write of new data (stuff that wouldn't be cached)
  • a

    Alan

    03/19/2020, 10:01 PM
    I'm running Prisma on GKE, it has it's own node pool of 20 nodes
  • a

    Alan

    03/19/2020, 10:02 PM
    with horizontal pod autoscaler, the prisma pod takes too long to initialize and get into a ready state.
  • a

    Alan

    03/19/2020, 10:03 PM
    prisma seems to be the only thing running into issues for auto scaling
1...353354355...637Latest