Changeset 0691acd in tol


Ignore:
Timestamp:
Oct 26, 2008, 10:48:41 AM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
64e44a5
Parents:
1abcc87
Message:

Using new methods to handle with cached inserting queries to build optimized SQL scripts

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@85 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_db_api.estim.tol

    r1abcc87 r0691acd  
    2020  Set raftery_ = estim::report::coda.raftery.diag;
    2121  Set raftery  = If(Card(raftery_)==Card(summary)+1, raftery_, Copy(Empty));
     22  Real SqlStartCachedInsert(0); 
    2223  Set For(1,Card(estim::report::coda.summary),Real save.param(Real k)
    2324  {
    … …  
    3233      SetSum(For(4,Card(token),Text build.member(Real tk)
    3334      {"::"+token[tk]} )));
    34     Real BysMcmc::Bsr::DynHlm::DBApi::SqlExecTrace(
    35     "INSERT INTO "+dbName+"."+_table::ParamStats+"\n"
    36     "VALUES('"+
     35    Real BysMcmc::Bsr::DynHlm::DBApi::SqlCachedInsert(
     36    dbName+"."+_table::ParamStats,
     37    "'"+
    3738     model+"','"+
    3839     session+"','"+
    … …  
    5758     SqlFormatReal(cr->size.min_)+","<<
    5859     SqlFormatReal(cr->dep.factor_)+","<<
    59      SqlFormatReal(cr->remain_)+")" )
     60     SqlFormatReal(cr->remain_))
    6061  });
     62  Real SqlStopCachedInsert(0);
    6163  1
    6264};
Note: See TracChangeset for help on using the changeset viewer.