pedrobcst / Xerus

XRay Estimation and Refinement Using Similarity (XERUS)
MIT License
29 stars 6 forks source link

discussion: Repeat querying #48

Open oslopanda opened 1 year ago

oslopanda commented 1 year ago

Hello,

Thank you for the nice work! While using Xerus, i feel there might be many repeating querying from the database? For instance a system with elements A, B, C, and D the program try to query combinations A, B, C, D, (AB), (AC), (AD), (BC),(CD)..... However, if you just query for (ABCD) you will get all the combinations from the database? Or i am totally wrong?

pedrobcst commented 1 year ago

Hey,

Sorry for the late reply.

Indeed we do query by combination of elements instead of querying the list of elements. I do not know remember exactly why I made in this way (the queriers itself where one the first things I coded, and its actually due to a refactor), but I believe it was the following reasons:

I believe the queriers can be revisited and remade to be more efficient. Specially, the COD querying should be moved totally to OPTIMADE interface that I believe would give more flexibility. This can be reeinvesitgated, just now I dont have much free time to work on Xerus (sorry!), but any PR I would be glad to review and check. Any other improvemenrts are also welcome!