parse-server

MongoDB indexing for a Parse Server application

醉酒当歌 提交于 2021-02-08 03:38:11
问题 We have a social app where users can chat with each other and we’ve reached 350K messages! We recently noticed that as the number of messages is growing, the find operations are getting slower! I believe the issue here is that the Message collection is not indexed. That’s what I want to do now! I found this piece of code at the MongoDB docs: db.comments.ensure_index(('discussion_id', 1)) This is my Message collection: { chatRoom: <Pointer>, user: <Pointer>, text: <String>, isSeen: <Bool> } So

java android i/o Failure Exception when creating a ParseObject

北城以北 提交于 2020-12-04 12:10:20
问题 I started a Parse server instance on AWS where I want to store my data from an android application. In the module's gradle I inserted the below under dependencies implementation 'com.parse.bolts:bolts-tasks:1.4.0' implementation 'com.parse:parse-android:1.17.3' and created a new application which initializes parse configuration import android.app.Application; import android.app.Application; import android.util.Log; import com.parse.Parse; import com.parse.ParseACL; import com.parse

java android i/o Failure Exception when creating a ParseObject

允我心安 提交于 2020-12-04 12:00:31
问题 I started a Parse server instance on AWS where I want to store my data from an android application. In the module's gradle I inserted the below under dependencies implementation 'com.parse.bolts:bolts-tasks:1.4.0' implementation 'com.parse:parse-android:1.17.3' and created a new application which initializes parse configuration import android.app.Application; import android.app.Application; import android.util.Log; import com.parse.Parse; import com.parse.ParseACL; import com.parse

java android i/o Failure Exception when creating a ParseObject

旧时模样 提交于 2020-12-04 11:57:47
问题 I started a Parse server instance on AWS where I want to store my data from an android application. In the module's gradle I inserted the below under dependencies implementation 'com.parse.bolts:bolts-tasks:1.4.0' implementation 'com.parse:parse-android:1.17.3' and created a new application which initializes parse configuration import android.app.Application; import android.app.Application; import android.util.Log; import com.parse.Parse; import com.parse.ParseACL; import com.parse

Parse Server / JS SDK, error 206 when saving a user object

喜夏-厌秋 提交于 2020-07-18 16:50:56
问题 I am having trouble using the Parse Server JS SDK to edit and save a user. I am signing in, logging in and retrieving the user just fine, I can call without exception user.set and add/edit any field I want, but when I try to save, even when using the masterKey, I get Error 206: Can t modify user <id> . I also have tried to use save to direcly set the fields, same result. A interesting thing is that in the DB, the User's Schema get updated with the new fields and types. Here is my update

Parse Server / JS SDK, error 206 when saving a user object

你说的曾经没有我的故事 提交于 2020-07-18 16:50:07
问题 I am having trouble using the Parse Server JS SDK to edit and save a user. I am signing in, logging in and retrieving the user just fine, I can call without exception user.set and add/edit any field I want, but when I try to save, even when using the masterKey, I get Error 206: Can t modify user <id> . I also have tried to use save to direcly set the fields, same result. A interesting thing is that in the DB, the User's Schema get updated with the new fields and types. Here is my update

Parse Server / JS SDK, error 206 when saving a user object

青春壹個敷衍的年華 提交于 2020-07-18 16:50:04
问题 I am having trouble using the Parse Server JS SDK to edit and save a user. I am signing in, logging in and retrieving the user just fine, I can call without exception user.set and add/edit any field I want, but when I try to save, even when using the masterKey, I get Error 206: Can t modify user <id> . I also have tried to use save to direcly set the fields, same result. A interesting thing is that in the DB, the User's Schema get updated with the new fields and types. Here is my update

Using setTimeout() to Schedule pushes

拜拜、爱过 提交于 2020-07-09 14:47:06
问题 Since Scheduled push is not available on Parse , I'm using setTimeout() to schedule pushes. I'm using back4app. // I call this cloud code Parse.Cloud.define("pushMultiple",async (request) => { //Using set timeout to send out a push 1 hour later setTimeout(pushout,100000); }); //The function to send Notificaiton const pushout = () => { Parse.Push.send({ channels: [ "t1g.com"], data: {alert: "The Giants won against the Mets 2-3."} },{ useMasterKey: true }); } My code works fine. So my question