In the query DynSpanAttributes.Bfmv you have the following: ##WDK_ID_SQL##
I am not familiar with this syntax. Could you explain?
Thanks,
Emily
WDK susbtitutes this macro with the search cached result.
DynSpan is the new record type called "genomic segment", which is a "span" in the genome, with a start and stop coordinates.
Bfmv is what we call our attribute tables. As you know we pre-compute all attributes for all IDs of a record type, in these attribute tables.
But we cannot do that for "spans" (too many)... so the bfmv query uses the search result to bring the IDs and their attributes into the final result.
Cristina
I appreciate the explanation, that clarifies it a bit.
But I am still a little confused. What is the "cached search result"
that the macro substitutes? I am assuming that it is related to the info
passed to the showRecord action ... is this correct? Does it just
contain the primary key and the project id for the record type? Is this
something that can be used with any record type or is it specific to the
dynaSpan?
Thanks,
Emily
If you are curious about how we handle the genomic segment record page, where
the record is not specifically associated with any id query, here is how we did
it: we replace the ##WDK_ID_SQL## with something like "SELECT source_id FROM
dual", where the source_id is the id of the genomic segment record.
On the other hand, the ##WDK_ID_SQL## can be used by any record types, but we
haven't found any use case of using it for a normal record type.
Jerric
Thanks! Makes sense now.
-E