[tor-bugs] #15844 [Onionoo]: Develop database schema to support Onionoo's search parameter efficiently

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat May 16 22:18:30 UTC 2015


#15844: Develop database schema to support Onionoo's search parameter efficiently
-----------------------------+-----------------
     Reporter:  karsten      |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Onionoo      |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+-----------------

Comment (by leeroy):

 I've been familiarizing myself with the code in an effort to understand
 the properties of the various datatypes. I would like to ensure I'm
 correct in my understanding: Bridges can only be located by hash of
 fingerprint? Relays can be located by fingerprint, sha1 of fingerprint, or
 base64 encoding of fingerprint?

 A function index for relays may come in handy here. The fingerprint search
 needs to be fast irregardless. So store the fingerprint, create a function
 index using digest() and encode(). Now all three are fast with the
 advantage of only storing one.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15844#comment:19>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list