# US 11,119,999 B2 · Zero-overhead hash filters

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,999 B2
- Document ID: US11119999B2
- Status: Granted
- Kind: B2
- Application number: 16/520,803
- Filed: 2019-07-24
- Published: 2021-01-28
- Granted: 2021-09-14
- Earliest claimed: 2019-07-24
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Martin Rupp
- Web page: https://patentgrep.com/patent/US11119999B2

## CPC

- G06F 16/2272: {Management thereof}
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/9035: Filtering based on additional data, e.g. user or group profiles
- H03K 19/21: EXCLUSIVE-OR circuits, i.e. giving output if input signal exists at only one input; COINCIDENCE circuits, i.e. giving output only if all input signals are identical
- H03M 7/3059: {Digital compression and data reduction techniques where the original information is represented by a subset or similar information, e.g. lossy compression}
- H03M 7/3084: {using adaptive string matching, e.g. the Lempel-Ziv method}
- H03M 7/40: Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

A system includes determination of a first value of a first row of a database table column, generation of a first truncated value based on the first value, the first truncated value including fewer bytes than the first value, generation of a first representation of the first value based on the first truncated value, the first representation including fewer bytes than the first value, storage of the first representation at a first position in a first array, and storage of the first truncated value at a second position in a second array.

## Claims

### Claim 1

A system comprising:
a memory storing processor-executable program code; and
a processor to execute the processor-executable program code in order to cause the system to:
determine a first value of a first row of a database table column;
generate a first truncated value based on the first value, the first truncated value including fewer bytes than the first value;
generate a first representation of the first value based on the first value, the first representation including fewer bytes than the first value;
store the first representation at a first position in a first array; and
store the first truncated value at a second position in a second array,
wherein the first position is determined based on a position of the first row, and the second position is determined based on the first position;
receive a query including at least a request for a given column value;
determine a value associated with the given column value matches the first representation stored at the first position in the first array;
determine the corresponding first truncated value matches the requested given column value, in a case the value associated with the given column value matches the first representation, and
return a result set for the query including at least the given column value.

### Claim 2 (depends on 1)

A system according to claim 1, wherein generation of the first represenation comprises:
determination of a first k-byte hash of the first truncated value; and
performance of an XOR logical operation between the first k-byte hash and a first k characters of the first value.

### Claim 3 (depends on 2)

A system according to claim 2, wherein generation of the first truncated value comprises truncation of the first through kth characters from the first value.

### Claim 4 (depends on 3)

A system according to claim 3, the processor to execute the processor-executable program code in order to cause the system to:
receive a filter value;
generate a truncated value of the filter value by truncating the first through kth characters from the filter value;
determine a hash of the truncated value of the filter value;
determine a k-byte filter hash value by performing an XOR logical operation between the hash of the truncated value of the filter value and a first k characters of the filter value;
determine a position of the k-byte filter hash value in the first array;
determine a position of the second array based on the position of the k-byte filter hash value in the first array; and
determine whether the filter value matches a truncated value stored at the position of the second array.

### Claim 5 (depends on 1)

A system according to claim 1, wherein generation of the first truncated value comprises truncation of the first through kth characters from the first value.

### Claim 6 (depends on 1)

A system according to claim 1, the processor to execute the processor-executable program code in order to cause the system to:
receive a filter value;
generate a representation of the filter value;
determine a position of the representation of the filter value in the first array;
determine a position of the second array based on the position of the representation of the filter value in the first array; and
determine whether the filter value matches a truncated value stored at the position of the second array.

### Claim 7 (depends on 6)

A system according to claim 6, wherein the second array is stored in a plurality of memory blocks of a file-based storage device,
wherein determination of the position of the second array comprises determination of one of the plurality of memory blocks, and
wherein determination of whether the filter value matches the truncated value stored at the position of the second array comprises loading the one of the plurality of memory blocks.

### Claim 8

A computer-implemented method, comprising:
determining a first value of a first row of a database table column;
generating a first truncated value based on the first value, the first truncated value including fewer bytes than the first value;
generating a first representation of the first value based on the first truncated value, the first representation including fewer bytes than the first value;
storing the first representation at a first position in a first array; and
storing the first truncated value at a second position in a second array,
wherein the first position is determined based on a position of the first row, and the second position is determined based on the first position;
receiving a query including at least a request for a given column value;
determining a value assocaited with the given column value matches the first representation stored at the first position in the first array;
determining the corresponding first truncated value matches the requested given column value, in a case the value assocaited with the given column value matches the first representation; and
returning a result set for the query including at least the given column value.

### Claim 9 (depends on 8)

A method according to claim 8, wherein generating the first represenation comprises:
determining a first k-byte hash of the first truncated value;
performing an XOR logical operation between the first k-byte hash and a first k characters of the first value.

### Claim 10 (depends on 9)

A method according to claim 9, wherein generating the first truncated value comprises truncation of the first through kth characters from the first value.

### Claim 11 (depends on 10)

A method according to claim 10, further comprising:
receiving a filter value;
generating a truncated value of the filter value by truncating the first through kth characters from the filter value;
determining a hash of the truncated value of the filter value;
determining a k-byte filter hash value by performing an XOR logical operation between the hash of the truncated value of the filter value and a first k characters of the filter value;
determining a position of the k-byte filter hash value in the first array;
determining a position of the second array based on the position of the k-byte filter hash value in the first array; and
determining whether the filter value matches a truncated value stored at the position of the second array.

### Claim 12 (depends on 8)

A method according to claim 8, wherein generating the first truncated value comprises truncating the first through kth characters from the first value.

### Claim 13 (depends on 8)

A method according to claim 8, further comprising:
receiving a filter value;
generating a representation of the filter value;
determining a position of the representation of the filter value in the first array;
determining a position of the second array based on the position of the representation of the filter value in the first array; and
determining whether the filter value matches a truncated value stored at the position of the second array.

### Claim 14 (depends on 13)

A method according to claim 13, wherein the second array is stored in a plurality of memory blocks of a file-based storage device,
wherein determination of the position of the second array comprises determination of one of the plurality of memory blocks, and
wherein determination of whether the filter value matches the truncated value stored at the position of the second array comprises loading the one of the plurality of memory blocks.

### Claim 15

A system comprising:
a database server; and
a data storage system,
wherein the database server is to:
determine a first value of a first row of a database table column;
generate a first truncated value based on the first value, the first truncated value including fewer bytes than the first value;
generate a first representation of the first value based on the first truncated value, the first representation including fewer bytes than the first value;
store the first representation at a first position in a first array of the data storage system;
store the first truncated value at a second position in a second array of the data storage system;
receive a query including at least a request for a given column value;
determine a value assocaited with the given column value matches the first representation stored at the first position in the first array;
determine the corresponding first truncated value matches the requeted given column value, in a case the value assocaited with the given column value matches the first represetnation, and
return a result set for the query including at least the given column value.

### Claim 16 (depends on 15)

A system according to claim 15, wherein generation of the first represenation comprises:
determination of a first k-byte hash of the first truncated value;
performance of an XOR logical operation between the first k-byte hash and a first k characters of the first value.

### Claim 17 (depends on 16)

A system according to claim 16, wherein generation of the first truncated value comprises truncation of the first through kth characters from the first value.

### Claim 18 (depends on 17)

A system according to claim 17, the database server to:
receive a filter value;
generate a truncated value of the filter value by truncating the first through kth characters from the filter value;
determine a hash of the truncated value of the filter value;
determine a k-byte filter hash value by performing an XOR logical operation between the hash of the truncated value of the filter value and a first k characters of the filter value;
determine a position of the k-byte filter hash value in the first array;
determine a position of the second array based on the position of the k-byte filter hash value in the first array; and
determine whether the filter value matches a truncated value stored at the position of the second array.

### Claim 19 (depends on 15)

A system according to claim 15, the database server further to:
receive a filter value;
generate a representation of the filter value;
determine a position of the representation of the filter value in the first array;
determine a position of the second array based on the position of the representation of the filter value in the first array; and
determine whether the filter value matches a truncated value stored at the position of the second array.

### Claim 20 (depends on 19)

A system according to claim 19, wherein the second array is stored in a plurality of memory blocks of a file-based storage device,
wherein determination of the position of the second array comprises determination of one of the plurality of memory blocks, and
wherein determination of whether the filter value matches the truncated value stored at the position of the second array comprises loading the one of the plurality of memory blocks.
