which is a better approach
a) Store AL as BLOB
b) Create columns to store each of the string that makes the AL.
Is there any other approach that I can take?
which is a better approach
a) Store AL as BLOB
b) Create columns to store each of the string that makes the AL.
Is there any other approach that I can take?
There are huge potential traps when it comes to serializing objects. Joshua Bloch has a complete section in Effective Java , dedicated to Serialization where he concludes that you should avoid it if possible.
So go for option B
You should go with the approach b, because:
ArrayList class may change and thus you won't be able to deserialize the BLOBs back to ArrayList instancesArrayList BLOBs back to .NET lists.ArrayList as the BLOB, and go to your DBMS management console, and write queries, you won't be able to see the contents of those BLOBs.Having said that I recommend you to read an introductory book about SQL and database design as well as a theoretical book about relational algebra. This will make things much clearer to you.