Skip to content
This repository was archived by the owner on Jun 23, 2021. It is now read-only.

Re #1692 prevent query repeats and not fetch rows which are not required#1

Open
zainengineer wants to merge 1 commit into
feature/hex-valuefrom
feature/nu
Open

Re #1692 prevent query repeats and not fetch rows which are not required#1
zainengineer wants to merge 1 commit into
feature/hex-valuefrom
feature/nu

Conversation

@zainengineer

Copy link
Copy Markdown

@jonpday please review

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query deserves a LIMIT statement to reduce the scope and severity of catastrophically bad data. Something like LIMIT 1000 would provide a decent safeguard, if we can assume this should never return more than 1000 rows.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@parhamr next line ->where("$columnName != ''"); should limit the result.

If in any case it does not we need to investigate it further, as if config has hex value we need it in the category listing.

@stenza

stenza commented Nov 24, 2014

Copy link
Copy Markdown

Hi,
do you have information, is this work on 1.9?
thankyou

@parhamr

parhamr commented Nov 24, 2014

Copy link
Copy Markdown

Great outcome in production:

screen shot 2014-11-24 at 2 03 03 pm

(ignore the mistake at 13:55)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants