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

Query-generating command in README.md makes queries run even for explain #3

Open
mbanck opened this issue Feb 26, 2017 · 0 comments
Open

Comments

@mbanck
Copy link

mbanck commented Feb 26, 2017

It seems to me the command

for q in `seq 1 22`
do
    DSS_QUERY=dss/templates ./qgen $q >> dss/queries/$q.sql
    sed 's/^select/explain select/' dss/queries/$q.sql > dss/queries/$q.explain.sql
    cat dss/queries/$q.sql >> dss/queries/$q.explain.sql;
done

adds the full query (without explain) to the end of the $q.explain.sql is that intentional? That way, your script appears to run the explain, then the query and then the query again.

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

1 participant