mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Cfg: Add initial implementation to load items
This commit is contained in:
@@ -79,7 +79,12 @@ class Xob_catlink_mgr {
|
||||
tmp_link_tbl.Create_idx__to_ttl(); // 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();
|
||||
wkr.Make_catlink_dbs(wiki, tmp_conn, page_conn, cat_core_conn);
|
||||
try {
|
||||
wkr.Make_catlink_dbs(wiki, tmp_conn, page_conn, cat_core_conn);
|
||||
} catch (Exception e) {
|
||||
Gfo_usr_dlg_.Instance.Log_many("", "", "error while generating catlink dbs; ~{0}", Err_.Message_gplx_log(e));
|
||||
throw Err_.new_wo_type("error while generating catlink dbs", "err", Err_.Message_gplx_log(e));
|
||||
}
|
||||
|
||||
// make catcore_tbl; update page!cat_db_id
|
||||
wkr.Make_catcore_tbl(wiki, tmp_conn, page_conn, cat_core_conn);
|
||||
|
||||
@@ -59,8 +59,9 @@ class Xob_catlink_wkr {
|
||||
|
||||
// insert; notify;
|
||||
cat_link_tbl.Insert_cmd_by_batch(page_id_prv, rdr.Read_int("page_id"), rdr.Read_byte("cl_type_id"), rdr.Read_long("cl_timestamp"), sortkey, sortkey_prefix);
|
||||
if (++rows % 100000 == 0)
|
||||
Gfo_usr_dlg_.Instance.Prog_many("", "", "inserting cat_link row: ~{0}", Int_.To_str_fmt(rows, "#,##0"));
|
||||
if (++rows % 100000 == 0) {
|
||||
Gfo_usr_dlg_.Instance.Plog_many("", "", "inserting cat_link row: ~{0}", Int_.To_str_fmt(rows, "#,##0"));
|
||||
}
|
||||
}
|
||||
}
|
||||
finally {rdr.Rls();}
|
||||
|
||||
Reference in New Issue
Block a user