[Xapian-tickets] [Xapian] #688: stor value

Xapian nobody at xapian.org
Sun Sep 27 04:34:13 BST 2015


#688: stor value
--------------------+----------------------------
 Reporter:  matf    |             Owner:  olly
     Type:  defect  |            Status:  closed
 Priority:  normal  |         Milestone:
Component:  Other   |           Version:  1.2.21
 Severity:  normal  |        Resolution:  invalid
 Keywords:          |        Blocked By:
 Blocking:          |  Operating System:  All
--------------------+----------------------------
Changes (by matf):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Replying to [ticket:688 matf]:
 > backends/chert/chert_values.cc
 > 193         static const size_t CHUNK_SIZE_THRESHOLD = 2000;
 > 226         if (tag.size() >= CHUNK_SIZE_THRESHOLD) write_tag();
 > #define CHERT_DEFAULT_BLOCK_SIZE 8192
 >
 >
 > Whether I can modify function append_to_stream for  the following ?
 >
 > 216     void append_to_stream(Xapian::docid did, const string & value) {
 > 217         Assert(did);
 > 218         if (tag.size()+sizeof(did)+1+value.size() >=
 table->block_size) write_tag();
 > 219
 > 220         if (tag.empty()) {
 > 221             new_first_did = did;
 > 222         } else {
 > 223             AssertRel(did,>,prev_did);
 > 224             pack_uint(tag, did - prev_did - 1);
 > 225         }
 > 226         prev_did = did;
 > 227         pack_string(tag, value);
 > 228     }
 >
 >
 > the value table  utilization ratio of less than the term table.
 > 454M    termlist.DB
 > 342M    termlist.DB.tar
 > 748M    postlist.DB
 > 218M    posilist.DB.tar

--
Ticket URL: <http://trac.xapian.org/ticket/688#comment:2>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list