setup in a .bsh script?

11 views
Skip to first unread message

Jonathan Rochkind

unread,
Jan 5, 2010, 2:12:15 PM1/5/10
to solrma...@googlegroups.com
What's the best way to run some setup in a .bsh script, that I don't
want to be run every time the mapping function is called, i really want
it to be run once per application run.

Will SolrMarc in fact compile/load your .bsh script only once, and then
call the specified function in it, as opposed to re-loading/compiling on
every invocation or every record?

I guess if I put some static methods in my .bsh script that
lazy-initialize their values (if static_variable == nil {
static_variable = something;} return static_variable)... assuming
SolrMarc in fact loads/compiles the .bsh only once per SolrMarc
execution... I think that would do it? Any better ideas or problems
with my assumptions?

Jonathan

Reply all
Reply to author
Forward
0 new messages