I'm trying to create a database structure (in sqlite or MySQL) that allows me to return values in col1 where col2 contains "tom." col2's type would ideally be some sort of list data structure but don't think this exists in SQL. The overall data is extremely large (10-50 GB), so achieving an acceptable speed is an issue. I've tried making the col2 data TEXT and using contains or like, but this is way too slow.
col1 col2
object1 tom, fred, mary, joe
object2 bob, tom, jerry
object3 sam, violet