diffix / explorer

Tool to automatically explore and generate stats on data anonymized using Diffix
MIT License
2 stars 1 forks source link

Duplicate queries #236

Closed dandanlen closed 4 years ago

dandanlen commented 4 years ago

Multiple queries are sent for some analyses.

I think this is because the dependency injection resolves instances of explorer components differently depending on how they are specified in the class constructor:

Unfortunately there doesn't seem to be a way to define the default lifetime for auto-resolved types.

I will log a low-priority issue to create an analyzer to alert us to this (ie. make sure to use interfaces instead of concrete types in constructors for ExplorerComponent classes). It seems like this would be useful but I have no idea how much work this involves...