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

Add a IPython magic command for searching tables within a specific DB #9

Open
takuti opened this issue Apr 15, 2019 · 1 comment
Open

Comments

@takuti
Copy link
Contributor

takuti commented Apr 15, 2019

Since this command fetches all databases and tables, it can be slow even if a database name is given.

@takuti takuti added the enhancement New feature or request label Apr 15, 2019
@takuti
Copy link
Contributor Author

takuti commented Apr 16, 2019

Correction - the given argument is NOT a database name, and it's a regexp for table name:

%td_tables [table_pattern]

The code searches all table names that match to the pattern across all DBs.

If we need to improve its efficiency by focusing on a specific DB name, it should be a new function as:

%td_tables [db_name] [pattern]

@takuti takuti removed the enhancement New feature or request label Apr 16, 2019
@takuti takuti changed the title %td_tables is slow Add a IPython magic command for searching tables within a specific DB Apr 16, 2019
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