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

New mash type are behaving poorly #244

Closed
mikfire opened this issue Apr 23, 2016 · 2 comments
Closed

New mash type are behaving poorly #244

mikfire opened this issue Apr 23, 2016 · 2 comments

Comments

@mikfire
Copy link
Contributor

mikfire commented Apr 23, 2016

I just created a new recipe. If I do a double batch sparge with a grist ratio of 1.5 qt/lb, I get a warning saying that there is more liquid than mash tun. If I do a double batch sparge at a grist ratio of 2, no warning and the math works.

The sort order is also a little out of whack.

Finally, I missed a few qDebug statements in there somewhere.

mikfire pushed a commit to mikfire/brewtarget that referenced this issue Apr 23, 2016
According to both sqlite and postgres, the order in which rows are returned is
undefined unless an order by clause is used. In postgres, it seems "undefined"
means random. In sqlite, it seems "undefined" means in row-id order.

When we got the mash steps, we didn't specify the order. It happened to work
for sqlite, but not for postgresql. This patch adds an order by clause to make
sure it isn't "undefined".
@mikfire
Copy link
Contributor Author

mikfire commented Apr 23, 2016

I think I have it this time.

As a side question, is there a reason we load everything, everything, everything on startup? Could we maybe find a way to load only what is needed first (like whatever tree is focused, plus what is needed to display the recipe + ferms) and then load the rest as we need it? It would make the remote database stuff much faster.

@rocketman768
Copy link
Member

As a side question, is there a reason we load everything, everything, everything on startup?

Because that's how it used to work in-memory?

Could we maybe find a way to load only what is needed first

Sure, if there is a principled way to figure that out.

mikfire added a commit that referenced this issue Apr 26, 2016
Closes #244 -- New mash type are behaving poorly (for reals)
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