summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorAdrian Negreanu <adrian.m.negreanu@intel.com>2014-02-27 08:53:05 (GMT)
committerAdrian Negreanu <adrian.m.negreanu@intel.com>2014-02-27 08:53:05 (GMT)
commitd7f9bbedaa4b4fcc0253470d522149a2307d1020 (patch)
tree3be59fd34105dd5e8f0b37b3824ab1a491d23e47 /src/util.cpp
parentc7e36ca9e3bfccea54c3d3e3d2f668b74ac1563c (diff)
downloadDoxygen-d7f9bbedaa4b4fcc0253470d522149a2307d1020.zip
Doxygen-d7f9bbedaa4b4fcc0253470d522149a2307d1020.tar.gz
Doxygen-d7f9bbedaa4b4fcc0253470d522149a2307d1020.tar.bz2
sqlite3: speedup the SELECTs
The uniqueness of rows is maintained by first doing a select. In case the item is not found, it's INSERTed. This is done for files, refids, params and includes, data that is not unique by itself, like cross-references for example. In other words, you can have many memberdefs in one file, but you can only have one cross-reference between two functions since the reference location is unique. So, when SELECTing files and refids, use the file name and refids as primary key since that's the fastest way to do it. Also 'OR REPLACE' not necessary in 'INSERT OR REPLACE'. Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Diffstat (limited to 'src/util.cpp')
0 files changed, 0 insertions, 0 deletions