Skip to content

Commit

Permalink
Add index for elf_symbols on the name column
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Sep 1, 2023
1 parent c0f9ebf commit e026ffe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqlelf/elf/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import apsw
import apsw.ext
import lief

from ..elf.section import section_name as elf_section_name


Expand Down Expand Up @@ -59,5 +60,6 @@ def register(connection: apsw.Connection, binaries: list[lief.Binary]):
"""
CREATE TEMP TABLE elf_symbols
AS SELECT * FROM raw_elf_symbols;
CREATE INDEX elf_symbols_name_idx ON elf_symbols (name);
"""
)

0 comments on commit e026ffe

Please sign in to comment.