New to Python and all things database related. Wondering when I should consider using a database and why? I have what is essentially a list of objects that is around 30000 lines long. I'm developing a web app which will need to search this list for the correct object depending on user input.
For more context, the list contains all valid and unique musical chord names, each with the attributes that make that chord what it is. Eg. Notes, Interval notation. It is the name of the chord the user will type in, and it is the chord attributes they will get back.
I would like to know the quickest way of pulling an object from this list of objects by searching the objects name, and how I can implement it in python with minimal external libraries.
Currently I'm just parsing through a .txt file and converting the string line I find back to the proper object in python and returning that.
Any help is appreciated!