0

Currently I am working with an iOS app which has some features to work with File datatype. I need to upload the images on Parse and also download the images from parse. Here I am facing issues with the response time that parse gives me.

When I upload a single image chosen from gallery in iOS device, it takes too much time to respond back. Likely if I am uploading a single image it takes around more than 1 minute to upload and respond back. The same thing is happening with downloading the images from parse server.

Can anyone please suggest me what should I do in order to improve these response time? Like do I need to pay something to get faster response? Or this is normal response time provided by parse for all accounts like paid and free.

I am using below code for uploading image,

//Upload a new picture
    NSData *pictureData = UIImagePNGRepresentation(self.selectedImage);
    PFFile *file = [PFFile fileWithName:@"img" data:pictureData];
    [registrationData setObject:file forKey:@"image"];

    [registrationData saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
        if (succeeded) {

        } else {

        }
    }];

Can anyone please suggest me the way to get faster response?

Thanks in advance...!!!

iGatiTech
  • 2,306
  • 1
  • 21
  • 45

1 Answers1

1

Its due to Parse call multiple nested call to upload image(s) so its better to

  • use png image
  • scale image before uploading
  • type of account may of one of issue (free / paid)

hope It helps

Shobhakar Tiwari
  • 7,862
  • 4
  • 36
  • 71