This will replace a solution that currently uses two CL tables that I update with a script, but have not yet automated the copy and purge caches stuff to make it fully automatic.
I like the SQLite solution because it can be dynamically updated and it will store what I need in a single SQL table rather than two CL tables.
I’ve done some preliminary time trials and CL table lookup is WAY faster than SQLite – something like 20 microseconds for the table lookup vs 6000 microseconds for SQLite. Now that’s still only about .006 seconds by my calculation, but it’s still something to think about.
The real question is whether I can open the SQL database once and store the handle as a global variable (one per process? per thread?) that will be available across multiple iterations of a given XLATE or Tcl script. If SQLite has to open its database file for every message processed, I don’t think I’d want to do it that way.
Do any of you have any experience/opinions you could share?
Jeff Dinsmore
Chesapeake Regional Healthcare