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

Performance scaling: key column not taken to decide input spilit #25

Open
poruspurush opened this issue Jan 22, 2015 · 1 comment
Open

Comments

@poruspurush
Copy link

Hi,

Original issue posted here,
https://groups.google.com/forum/#!topic/lingual-user/ixaDrCxT_DI

We are exploring JDBC tap to pull the database from RDBMS. we are finding that basic select statements built by cascading JDBC API is not utilizing indexed columns (i.e. primary columns).

Is there anything we are missing that could influence the JDBC tap to utilize the PK index?

Thanks,
Purush

@fs111
Copy link
Contributor

fs111 commented Jan 22, 2015

The problem you are facing has to do with the InputFormat used by cascading jdbc. It seems that the sqoop folks have a more clever implementation called DataDrivenInputFormat. Something like that would be very useful in cascading-jdbc as well.

That being said for your concrete case I would propose you create a sub-class of OracleDBInputFormat that matches your data better: https://github.com/Cascading/cascading-jdbc/blob/wip-2.7/cascading-jdbc-oracle/src/main/java/cascading/jdbc/db/OracleDBInputFormat.java and use that isntead of the one that we ship.

If you can come up with an easy way to roll your changes into a portalbe/generic code, I am more than happy to integrate that into the project.

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