Skip to content

Optimized where clause for search cursor at step 6.5#6

Open
fabanc wants to merge 1 commit into
dstubbins:masterfrom
fabanc:Step-6.5-Where-Clause-optimization
Open

Optimized where clause for search cursor at step 6.5#6
fabanc wants to merge 1 commit into
dstubbins:masterfrom
fabanc:Step-6.5-Where-Clause-optimization

Conversation

@fabanc

@fabanc fabanc commented Nov 14, 2017

Copy link
Copy Markdown

Used the join function instead of multiple self-concatenations in order to build the where clause passed to the search cursor in step 6.5. This is much more efficient since strings are immutable. This also makes the code more readable and less verbose. Tested on Luxembourg, it makes step 6.5 processing time go from 25 seconds to 17 seconds.

Used the join function instead of multiple self-concatenations in order to build the where clause passed to the search cursor in step 6.5. This is much more efficient since strings are immutable. This also makes the code more readable and less verbose. Tested on Luxembourg, it makes step 6.5 processing time go from 25 seconds to 17 seconds.
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

Successfully merging this pull request may close these issues.

1 participant