Error creating Bingo molecule index

62 views
Skip to first unread message

Mitch Miller

unread,
Oct 23, 2020, 10:24:53 PM10/23/20
to indigo-general
Hello,

I'm trying to create an index on a 400k record table of molfiles using this command:
   create index chem_mol_idx on chem using bingo_idx (molecule bingo.molecule)

and the following error appears:
 NOTICE: bingo.index: 72000 structures processed ERROR: error: bingo: Error while executing build index procedure error: bingo buffer cache binary data: internal error: can not add cmf to the cache because is not enough space SQL state: XX000  

And the error indicates that one (or more) of the structures in the table is too large.

How can I find the record(s) with the molfiles causing the error?

Mitch

Savelyev Alexander

unread,
Oct 26, 2020, 6:25:31 AM10/26/20
to indigo-general
Hi Mitch

Could you please try to set log level to "DEBUG1"? It should output structure number in section (each section contains 64k structures) so it will be easier to find the huge structure. 

With best regards
Aleksandr

Mitch Miller

unread,
Oct 26, 2020, 10:17:58 AM10/26/20
to indigo-general
Thanks, Aleksandr,
How do I set the log level?

Mitch

Savelyev Alexander

unread,
Oct 26, 2020, 10:58:25 AM10/26/20
to indigo-general
One can change log levels using PostgreSQL settings


Changing  logging_collector , log_min_messages , log_min_error_statement should be enough

Another possible way to find a huge structure is to find length of "CompactMolecule"


The function should return cmf (internal format), therefore assuming max block size is 8kb then the following SQL can help

select *  FROM $table;  
WHERE octet_length(bingo.CompactMolecule($column, 0) ) > 8000

Thanks
Aleskandr

 

Mitch Miller

unread,
Oct 26, 2020, 8:07:16 PM10/26/20
to indigo-general
Thanks,  Aleksandr!!
 
>>select *  FROM $table;  
>>WHERE octet_length(bingo.CompactMolecule($column, 0) ) > 8000

allowed me to remove the large molfiles from my table and create the index.

Cheers,
Mitch

Reply all
Reply to author
Forward
0 new messages