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

Check for and create indexes independently of tables. #4

Open
bokov opened this issue Mar 16, 2017 · 0 comments
Open

Check for and create indexes independently of tables. #4

bokov opened this issue Mar 16, 2017 · 0 comments

Comments

@bokov
Copy link
Contributor

bokov commented Mar 16, 2017

Right now, indexes get created...

create index {0}_idx

create index {0}_pn_idx on {0} (pn)

create index {0}_ccd_idx on {0} (ccd)

create index {0}_idx

create index {0}_pfx_idx

create index {0}_tl_idx

sql = '''create index {0}_idx on {0} (c_name)'''.format(chischemes)

...only if the parent tables do not exist. But if they do already exist, it continues to use the existing ones and no indexes are created. Each of the above should be a separate exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant