diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2019-07-23 09:16:37 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-06 11:21:31 +0100 |
commit | 9802b2e6509bfc67f979f742e93b35340af62af8 (patch) | |
tree | 6e664fc7b1fdcf1132ff9f547341530104a23c04 /bitbake/lib/bb/siggen.py | |
parent | 6c7c0cefd34067311144a1d4c01986fe0a4aef26 (diff) | |
download | poky-9802b2e6509bfc67f979f742e93b35340af62af8.tar.gz |
bitbake: hashserv: SQL Optimizations
Implements a number of optimizations to the SQL used in the hash
equivalence server:
1) Two indexes are created for the two methods (method, taskhash and
method outhash) by which rows are found in order to speed up the
lookup
2) An extra SELECT to lookup the just inserted row was removed. This
SELECT is unnecessary since all of the information about the newly
inserted row is already available.
3) A uniqueness constraint was added to the table. This should allow
the server to be multithreaded in the future since duplicate inserts
can be detected (and ignored). This change requires bumping the
database version to '2', since a uniqueness constraint can't be
added to an existing table.
4) Some comments are added to clarify the trick SELECT statement used
when inserting new equivalent hashes
(Bitbake rev: 7aec8632e67b4f0ab7b72692c40a42f6926608c3)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
0 files changed, 0 insertions, 0 deletions