I have this class that I want to save using Objectify, this class will represent data larger than 1 MB, so there is a list of Blob objects that contains a fragment of a byte array that is smaller than 1 MB:
@Entity
public class BigBlob {
@Id
private Long id;
public static final int FRAGMENT_LIMIT = 777 * 1024;
@Serialized
private List<Blob> fragments = new ArrayList<Blob>();
...
}
However, @Serialized snippets that will display the size of this BigBlob class / object is larger than 1 MB.
Call this error:
com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call datastore_v3.Put() was too large.
If I use the @Embedded annotation, I get this error:
Cannot place array or collection properties inside @Embedded arrays or collections
How can I make sure that "fragments" are stored as a separate object?
By the way, I already have byte logic of bytes, which beats the entire array of bytes and puts fragments in Listfrom Blob, so this question does not relate to how to beat bytes.
, , .