Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't force the use of a specific DB index #39

Open
orien opened this issue Jul 12, 2014 · 3 comments
Open

Don't force the use of a specific DB index #39

orien opened this issue Jul 12, 2014 · 3 comments

Comments

@orien
Copy link
Member

orien commented Jul 12, 2014

We include a work around for a MySQL query optimiser defect
https://github.com/envato/double_entry/blob/master/lib/double_entry/balance_calculator.rb#L42-L48
https://github.com/envato/double_entry/blob/master/lib/double_entry/validation/line_check.rb#L55-L63

This MySQL defect has been patched (in 2010). Is it time to remove the work around?

@orien orien added this to the v1.0 milestone Jul 12, 2014
@asellitt
Copy link

can we benchmark with and without?

@orien
Copy link
Member Author

orien commented Jul 14, 2014

Reading @notahat's comments in the bug report. It doesn't sound deterministic.

Perhaps putting a flip around this is a way forward. Move forward with the change, while allowing a fast way to revert the behaviour if everything goes wrong.

@orien orien removed this from the v1.0 milestone Aug 23, 2014
@orien
Copy link
Member Author

orien commented Aug 23, 2014

This is not an urgent fix. The index requested is still the appropriate index to use. We don't gain much from doing this work.

@orien orien modified the milestone: v1.0 Nov 24, 2016
@orien orien removed the bugfix label Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants