AWS Amplify Observer and DataStore query responses is slow

0

Hello team,

I'm using aws amplify in my android application. For the first time the data store query returning the results very slow and Observer is always delay to return the data. I'm using latest version of amplify 2.14.11. Can any one give what is the problem.

Below i will give my schema

type Message @model @auth(rules: [{ allow: private }]) { id: ID! type: Int! content: String! senderId: Int! senderName: String! groupId: String! @index(name:"byGroup", sortKeyFields: ["sentAt"]) groupName: String! status: MessageStatus! role: String tag: String comment: String sentAt: AWSDateTime! orgId: Int! @index(name:"byOrgId") recipients: [MessageRecipient] @hasMany(indexName: "byMessage", fields: ["id"]) permittedTo: [String!] }

type MessageRecipient @model @auth(rules: [{ allow: private }]) { id: ID! messageId: ID! @index(name:"byMessage") groupId: String! @index(name: "byGroup") userId: Int! @index(name:"byUser") status: MessageStatus! sentAt: AWSDateTime! readAt: AWSDateTime permittedTo: [String!] }

MessageRecipient for Observer and Message model for DataStore query

Vishnu
asked 18 days ago109 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions