type_value: speed up loading the database
commit1a951ad8c89ff9f883de74fb2cf6b091931589d7
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Feb 2015 19:38:20 +0000 (18 22:38 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Feb 2015 19:38:20 +0000 (18 22:38 +0300)
treea4fb9fc16ec76edb63643c58b44439720d2bfc39
parentf65a092d16cf269d67797559d94f8e3a0f13f09d
type_value: speed up loading the database

1) Create the index on function_type_value first before creating the
   type_value table.
2) skip calculating the ranges earlier if we know we aren't going to find
   a usable range.
3) Only select the needed values, instead of *.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_data/db/create_db.sh
smatch_data/db/load_db_type_value.pl [moved from smatch_data/db/fill_db_type_value.pl with 95% similarity]