mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Import: Add index to cl_from
This commit is contained in:
parent
73872cf5ff
commit
cea5072c2a
@ -32,7 +32,7 @@ public class Xoa_app_ {
|
||||
}
|
||||
}
|
||||
public static final String Name = "xowa";
|
||||
public static final String Version = "3.11.2.6";
|
||||
public static final String Version = "3.11.2.7";
|
||||
public static String Build_date = "2012-12-30 00:00:00";
|
||||
public static String Op_sys_str;
|
||||
public static String User_agent = "";
|
||||
|
@ -76,7 +76,7 @@ class Xob_catlink_mgr {
|
||||
|
||||
// make catlink_dbs
|
||||
// cat_sort_tbl.Create_idx__key(); // index will be needed for join
|
||||
tmp_link_tbl.Create_idx__to_ttl(); // index will be needed for join
|
||||
tmp_link_tbl.Create_idx(); // index will be needed for join
|
||||
Db_conn page_conn = wiki.Data__core_mgr().Db__core().Conn();
|
||||
Xob_catlink_wkr wkr = new Xob_catlink_wkr();
|
||||
try {
|
||||
|
@ -30,7 +30,7 @@ class Xob_catlink_wkr {
|
||||
, ", tcl.cl_sortkey"
|
||||
, ", tcl.cl_sortkey_prefix"
|
||||
, "FROM <temp_db>tmp_cat_link tcl"
|
||||
, " JOIN page p ON p.page_namespace = 14 AND tcl.cl_to_ttl = p.page_title"
|
||||
, " JOIN page p ON tcl.cl_to_ttl = p.page_title AND p.page_namespace = 14"
|
||||
, "ORDER BY 1" // NOTE: must sort by page_id to keep all cats for page in one db
|
||||
));
|
||||
attach_mgr.Attach();
|
||||
|
@ -51,7 +51,10 @@ public class Xodb_tmp_cat_link_tbl implements Db_tbl {
|
||||
.Exec_insert();
|
||||
}
|
||||
public void Create_idx__sortkey() {conn.Meta_idx_create(Dbmeta_idx_itm.new_normal_by_tbl(tbl_name, fld_sortkey, fld_sortkey));}
|
||||
public void Create_idx__to_ttl() {conn.Meta_idx_create(Dbmeta_idx_itm.new_normal_by_tbl(tbl_name, fld_to_ttl, fld_to_ttl));}
|
||||
public void Create_idx() {
|
||||
conn.Meta_idx_create(Dbmeta_idx_itm.new_normal_by_tbl(tbl_name, fld_from, fld_from));
|
||||
conn.Meta_idx_create(Dbmeta_idx_itm.new_normal_by_tbl(tbl_name, fld_to_ttl, fld_to_ttl));
|
||||
}
|
||||
public void Rls() {
|
||||
stmt_insert = Db_stmt_.Rls(stmt_insert);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user