Skip to content

Commit

Permalink
Documents creation of indexes in sqlite database that gave a 140x spe…
Browse files Browse the repository at this point in the history
…ed on requests !
  • Loading branch information
dupgit committed May 6, 2016
1 parent b352c83 commit 7bc2f66
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/infrastructure.md
Expand Up @@ -116,8 +116,9 @@ For now Information is stored with the following scheme:
--- files ---- -- buffers --- - transmited -
| file_id * | | buffer_id *| | buffer_id *|
| cache_time | | url | --------------
| type | | data |
| file_user | --------------
| inode | | data |
| type | --------------
| file_user |
| file_group |
| uid |
| gid |
Expand All @@ -131,6 +132,10 @@ For now Information is stored with the following scheme:
| link |
--------------

Two indexes are created: transmited_buffer_id which indexes buffer_id
from transmited table in ascending order and files_inodes which indexes
inode from files table in ascending order.

Buffer order has to be kept. In the programs (when we pass things into
memory with C structure or into JSON formatted message) we keep buffer
order in an implicit manner (by storing the ordered list of checksums
Expand Down

0 comments on commit 7bc2f66

Please sign in to comment.