Skip to content

Instantly share code, notes, and snippets.

@alexcusack
Last active August 25, 2017 22:21
Show Gist options
  • Save alexcusack/c559fd82bd7279d1aead47250fe65c4f to your computer and use it in GitHub Desktop.
Save alexcusack/c559fd82bd7279d1aead47250fe65c4f to your computer and use it in GitHub Desktop.

Revisions

  1. alexcusack renamed this gist Aug 25, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. alexcusack revised this gist Aug 24, 2017. 2 changed files with 5 additions and 1 deletion.
    1 change: 0 additions & 1 deletion target_loans.js
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    loan_id % <modulo> = <params.bucket>
    5 changes: 5 additions & 0 deletions target_loans.sql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    -- Selecting loans based on modulus
    SELECT *
    FROM loans
    WHERE id % <modulus> = <bucket>;

  3. alexcusack created this gist Aug 24, 2017.
    1 change: 1 addition & 0 deletions target_loans.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    loan_id % <modulo> = <params.bucket>