mongodb - Parse is missing relations -
due bug in our app bunch of relations missing users whom have uploaded photos our parse server. photos uploaded , exists in our parse server, have pointer user's account. however, there no relation set between users account , photo added. affected lot of users.
for users have account , login app, can query when login app relates images accounts... how can using cloud code users?
so far writing function loops users , relates photo same objectid
, user
in photos
table. however, think put lot of pressure on server since have 30k users , 41.9k photos.
is there way add missing relationships?
one of parse.com features missing in parse server background jobs
in schedule task/function executed periodically, cron job on linux. suggest write job function scheduled executed on defined period of time (let's every hour) go through subset of data , fix relationships.
kue can used implement similar functionality parse.com background jobs.
Comments
Post a Comment