This is a common question that we’ve encountered in the past during our PoC process.
Question:
Where is the Knowledge Grid stored?
Can I interact with it directly?
Answer :
KG (Knowledge Grid) files are stored in a place defined in *.ini file as KNFolder variable. By default it is /BH_RSI_Repository folder in the database main directory. All KG files are collected there.
There are three kinds of KG stored here:
HIST.xxx.yyy.rsi - histograms
CMAP.xxx.yyy.rsi - character maps
JPP.xxx.yyy.xxx.yyy.rsi - pack-to-pack joining knowledge node
where xxx is a table internal number and yyy is a column number. There is also rsi_dir.rsd file which gathers the list of all KG present in the directory.
KG files are not intended to be human-readable. Changing them by hand may lead to wrong query results / server crash. They may be deleted completely (and query performance will be partially lost), but there is no way to recreate them, except JPP.* files.

