-
-
Notifications
You must be signed in to change notification settings - Fork 735
Download ParseFile content to file instead of memory #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download ParseFile content to file instead of memory #53
Conversation
00e0b3a
to
6d20873
Compare
|
||
public ParseAWSRequest(Method method, String url) { | ||
// The temp file is used to save the ParseFile content when we fetch it from server | ||
private File tempFile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: final
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk
} | ||
|
||
@Override | ||
protected Task<byte[]> onResponseAsync(ParseHttpResponse response, | ||
protected Task<Void> onResponseAsync(ParseHttpResponse response, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably do the operations in this method on ParseExecutors.io()
since we're doing disk i/o now or else we'd be on ParseRequest.NETWORK_EXECUTOR
by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, forgot this point, sorry.
It seems like we're going to have to have a proper solution for managing our cache. I'll create a new issue for it. |
Can you rebase master? It looks like there are conflicts with master. |
efe3382
to
dd591a9
Compare
LGTM |
…ad_ParseFile_content_to_file_instead_of_memory Download ParseFile content to file instead of memory
@wangmengyan95 updated the pull request. |
No description provided.