Skip to content

Commit

Permalink
Merge pull request #928 from pi-hole/new/ftl_regex_id
Browse files Browse the repository at this point in the history
Add regex_id field of the query table
  • Loading branch information
DL6ER authored Oct 21, 2023
2 parents 5004fb4 + 65f945e commit a70d37f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/database/ftl.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Label | Type | Allowed to by empty | Content
`reply_type` | integer | Yes | Type of the reply for this query (see [Supported reply types](ftl.md#supported-reply-types))
`reply_time` | real | Yes | Seconds it took until the final reply was received
`dnssec` | integer | Yes | Type of the DNSSEC status for this query (see [DNSSEC status](ftl.md#dnssec-status))
`regex_id` | integer | Yes | ID of the regex filter that matched this query (only set if blocked by a regex filter)

The `queries` `VIEW` is dynamically generated from the data actually stored in the `query_storage` table and the linking tables `domain_by_id`, `client_by_id`, `forward_by_id`, and `addinfo_by_id` (see below). The table `query_storage` will contains integer IDs pointing to the respective entries of the linking tables to save space and make searching the database faster. If you haven't upgraded for some time, the table may still contain strings instead of integer IDs.

Expand Down

0 comments on commit a70d37f

Please sign in to comment.