I'm using ActiveAndroid and everything was working fine until I addded another ForeignKey to one model.
I have a model called Song which is like:
@Column(name = "author_id")
private String mAuthorId;
@Column(name = "created")
private long mCreated;
@Column(name = "album")
private Album mAlbum;
And another model Author which is:
@Column(name = "author_id")
private String mAuthorId;
@Column(name = "created")
private long mCreated;
private List<Album> mAlbums;
private List<Song> mSongs;
Everything was working fine but then I added a this new field to the Author's model: @Column(name = "last_song") private Song mLastSong;
Then, since I added the FK lastSong in the Author's model, after restarting the app I'm getting an error: E/CursorWindow﹕ Could not allocate CursorWindow '/data/data/package/databases/app.db' of size 2097152 due to error -12. I have about 7500 songs models and about 450 authors. What may be happening? Is there something wrong with my code?
Thanks in advance!