Skip to content

Commit

Permalink
initial support for multiple tree construction strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
rvianello committed Apr 13, 2016
1 parent 0ab4f15 commit a19dab0
Show file tree
Hide file tree
Showing 6 changed files with 400 additions and 60 deletions.
2 changes: 1 addition & 1 deletion chemicalite.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void create_molecule_rdtree_f(sqlite3_context* ctx,

char * create_index
= sqlite3_mprintf("CREATE VIRTUAL TABLE 'str_idx_%q_%q' USING\n"
"rdtree(id, s bytes(%d))",
"rdtree(id, s bytes(%d), OPT_FOR_SUBSET_QUERIES)",
table, column, MOL_SIGNATURE_SIZE);

if (!create_index) {
Expand Down
3 changes: 2 additions & 1 deletion examples/example3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ void extend_schema(sqlite3 * db)
char * errmsg = 0;
if (sqlite3_exec(db,
"CREATE VIRTUAL TABLE morgan "
"USING rdtree(id, bfp bytes(64))",
"USING rdtree(id, bfp bytes(64),"
" OPT_FOR_SIMILARITY_QUERIES)",
NULL, /* Callback function */
0, /* 1st argument to callback */
&errmsg) != SQLITE_OK) {
Expand Down

0 comments on commit a19dab0

Please sign in to comment.