-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fetch only autosave.modifiedDate object instead of the whole meta object #1277
Comments
Sounds good to me. @malinajirka, have you measured how big the |
Thank you. I agree. That is significant. |
Sounds good to me. I had a look at the API doc and I'm not sure how this is doable. I tried |
Yes, sorry. I should have been more explicit. This is not supported on the API at the moment. I created this ticket so we don't forget about it and propose the change to the API team. |
The api change request is being discussed here - p3hLNG-14E-p2. |
Fixed in #1379 |
The introduction of the List Management component changed the way we fetch posts from the server. We basically first fetch just list of ids, modifiedDates and statuses -> if the PostModel in our local database has the same status and modified date, we don't fetch its detailed data. This approach saves tons of data and is also more performant.
However, we've started fetching the whole "meta" object here - this change was introduced in this PR as we didn't come up with a better solution.
Ideal fix for this issue is to add support for requesting specific nested fields to the API -> we'd request just "meta.data.autosave.modified" instead of the whole meta object.
cc @shiki @maxme
The text was updated successfully, but these errors were encountered: