So, I ran some queries again and am still having issues. Grabbing only one column of a 350 row table takes 0.286 seconds, which seems extremely long for such a small query. I ran the same query in a MySQL console and got results in 0.01 seconds.
While the string decode seems to have gone away, I am still having issues. I am struggling with how to debug the profiler. The results are shown here:
31639 function calls (30976 primitive calls) in 0.286 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
7 0.141 0.020 0.141 0.020 {method 'query' of '_mysql.connection' objects}
1 0.012 0.012 0.013 0.013 /usr/local/lib/python2.7/dist-packages/MySQLdb/init.py:14(<module>)
2 0.012 0.006 0.018 0.009 /usr/local/lib/python2.7/dist-packages/sqlalchemy/dialects/sqlite/pysqlite.py:289(dbapi)
1 0.006 0.006 0.006 0.006 /usr/lib/python2.7/sqlite3/dbapi2.py:24(<module>)
7 0.006 0.001 0.035 0.005 {import}
1 0.003 0.003 0.006 0.006 /usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py:62(init)
979 0.003 0.000 0.004 0.000 /usr/lib/python2.7/sre_parse.py:183(next)
38/6 0.003 0.000 0.011 0.002 /usr/lib/python2.7/sre_parse.py:380(_parse)
1 0.002 0.002 0.012 0.012 /usr/local/lib/python2.7/dist-packages/sqlalchemy/dialects/mysql/__init.py:7(<module>)
2571/2538 0.002 0.000 0.002 0.000 {len}
114 0.002 0.000 0.010 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/strategies.py:27(_register_attribute)
1825 0.002 0.000 0.002 0.000 {isinstance}
350 0.002 0.000 0.004 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/util/_collections.py:54(new)
143 0.002 0.000 0.002 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/util/_collections.py:634(iter)
351 0.002 0.000 0.008 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py:27(instances)
884 0.002 0.000 0.006 0.000 /usr/lib/python2.7/sre_parse.py:202(get)
688 0.002 0.000 0.002 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/util.py:489(hash)
368 0.002 0.000 0.003 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/visitors.py:211(iterate)
1 0.001 0.001 0.008 0.008 /usr/local/lib/python2.7/dist-packages/sqlalchemy/dialects/mysql/base.py:307(<module>)
26 0.001 0.000 0.004 0.000 {eval}
114 0.001 0.000 0.005 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py:1405(register_attribute_impl)
1 0.001 0.001 0.001 0.001 {_mysql.get_client_info}
70/6 0.001 0.000 0.003 0.001 /usr/lib/python2.7/sre_compile.py:33(_compile)
1246 0.001 0.000 0.001 0.000 {method 'append' of 'list' objects}
422/379 0.001 0.000 0.008 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py:609(get)
350 0.001 0.000 0.002 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py:3208(proc)
444 0.001 0.000 0.001 0.000 {method 'update' of 'dict' objects}
372 0.001 0.000 0.002 0.000 {method 'decode' of 'str' objects}
114 0.001 0.000 0.002 0.000 /usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py:408(init)
51 0.001 0.000 0.002 0.000 /usr/lib/python2.7/inspect.py:845(formatargspec)
812/757 0.001 0.000 0.001 0.000 {hash}
I really appreciate any guidance, even if it's just pointing me to a website or something. Thanks!