You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we need to store and ensure hash values only for every profile listed in profile_lm/ch?
Yes I think so. All we want to do is recognize if a profile that we keep some preparation for was changed (without updating the preparation). And without ch/lm we do not store any kind of prepared data so nothing can go wrong?
And can we skip the check for all LM profiles that reuse another preparation?
Hm it could happen that such a profile changes and no longer works for the chosen preparation_profile. Then again we do not do any kind of check whether or not a preparation_profile works for a given profile either.
Hm it could happen that such a profile changes and no longer works for the chosen preparation_profile. Then again we do not do any kind of check whether or not a preparation_profile works for a given profile either.
Sorry this was probably not very clear. I mean this: We have profile A and calculate landmarks for it and profile B that uses the landmarks we have for profile A as well. If we later change profile A we should get an error (because the hash changed without calculating new landmarks). If we later change profile B it could happen that this is no longer compatible to the landmarks we got for profile A. But then again we never checked that is was compatible before this either.
Do we need to store and ensure hash values only for every profile listed in profile_lm/ch?
Yes I think so. All we want to do is recognize if a profile that we keep some preparation for was changed (without updating the > preparation). And without ch/lm we do not store any kind of prepared data so nothing can go wrong?
I think we have to be more strict now, because of the subnetwork encoded values. We only run the subnetwork search when we do the initial import. So if we changed the profiles later we would have to re-run the subnetwork search. The easiest thing we can do is just not allowing changes of the profiles at all.
Note that we already do not allow adding or removing profiles, because of our check for the encoded values. If we add/remove profiles (or rename them) the encoded value string changes and we get an error when trying to load the graph. But if we modify a profile while keeping the name we potentially calculate routes using a subnetwork encoded value that does not match the changed profile.
Activity
easbar commentedon May 4, 2020
This could be a valuable improvement to be included in 1.0?
karussell commentedon May 5, 2020
Yes, sure. I'll have a look into it!
karussell commentedon May 5, 2020
Do we need to store and ensure hash values only for every profile listed in profile_lm/ch?
And can we skip the check for all LM profiles that reuse another preparation?
easbar commentedon May 5, 2020
Yes I think so. All we want to do is recognize if a profile that we keep some preparation for was changed (without updating the preparation). And without ch/lm we do not store any kind of prepared data so nothing can go wrong?
Hm it could happen that such a profile changes and no longer works for the chosen
preparation_profile. Then again we do not do any kind of check whether or not apreparation_profileworks for a given profile either.easbar commentedon May 5, 2020
Sorry this was probably not very clear. I mean this: We have profile A and calculate landmarks for it and profile B that uses the landmarks we have for profile A as well. If we later change profile A we should get an error (because the hash changed without calculating new landmarks). If we later change profile B it could happen that this is no longer compatible to the landmarks we got for profile A. But then again we never checked that is was compatible before this either.
easbar commentedon Apr 4, 2022
I think we have to be more strict now, because of the subnetwork encoded values. We only run the subnetwork search when we do the initial import. So if we changed the profiles later we would have to re-run the subnetwork search. The easiest thing we can do is just not allowing changes of the profiles at all.
Note that we already do not allow adding or removing profiles, because of our check for the encoded values. If we add/remove profiles (or rename them) the encoded value string changes and we get an error when trying to load the graph. But if we modify a profile while keeping the name we potentially calculate routes using a subnetwork encoded value that does not match the changed profile.