what would be proper way to delete albums hierarchical data with its media.
should i just start looping and find all the sub album id and delete thous and make query to delete all the media belonging to that album id.
that will be loads of query execution if data is alot or albums are alot for a user. what your device is on this.
my database structure:
**album**
album_id
name
parent_id
**media**
media_id
album_id
name