Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 59 Next »

Contents

Overview

This page will cover in detail the plan to run the Loyalty script before the launch of Phase 1 in the loyalty migration for BK ES. The script will:

  1. Delete all previous data from a specific date

  2. Import all transaction data (for earn transactions) from BK ES for the last 7 months and user’s loyalty points balance

  3. Create a remediation transaction to ensure the sum of transaction loyalty points matches the user’s balance loyalty points

Since launch was delayed from July to September, July change:

  • We are going to keep as valid all transactions migrated via script in the month of june that represented 6 months of data (Jan-Jun)

  • We are going to delete all Phase 0 earn transactions created since the beginning

  • We will import NEW data from Jun 24th until launch

1st Script Run (start Aug 1st)

RBIberia will drop file on before 12pm in OneDrive with data from until :

  • One file with users balance

  • One file with transactions data

This script is expected to take [] of days

2nd Script Run (start Aug 26th)

RBIberia will drop file on before 12pm in OneDrive with data from until :

  • One file with users balance

  • One file with transactions data

This script is expected to take [] of days

3rd Script Run (start Sep 1st)

RBIberia will drop file on before 12pm in OneDrive with data from until :

  • One file with users balance

  • One file with transactions data

This script is expected to take [] of days

4th Script Run & onwards to be daily

RBIberia drop file on

Data containing

Sep 3rd

Sep 1st and Sep 2nd

Sep 4th

Sep 3rd

Sep 5th

Sep 4th

Sep 6th

Sep 5th

Sep 7th

Sep 6th

Sep 8th

Sep 7th

Sep 9th

Sep 8th

Sep 10th

Sep 9th

Inconsistent Users

While running initial script we spotted loyalty transactions for users that did not exist in RBI.

Users have now been created in RBI. We need to sync data for those guys from until

Next steps:

Scripts sequence and status

Status:

  • Completed: (tick)

  • In Progress: (blue star)

  • Not started: (error)

1st & 2nd Script Run

Updating data from 24-06-17 to 24-08-19.

PointBalance.csv → 10.746.533 users
TransactionHistory.csv → 4.970.645 transactions

Script

Input File

Status

Duration

Params

1

deleteTransactions.ts

PointBalance.csv

(tick)

72h

CHUNK_SIZE=100 SLEEP=1000

2

transactions.ts

TransactionHistory.csv

(tick)

42h

CHUNK_SIZE=100 SLEEP=1000

3

transactions/index.ts

Generated from 2

(tick)

17.78h

CHUNK_SIZE=100 SLEEP=1000

4

users.ts

PointBalance.csv

(tick)

43.80h

CHUNK_SIZE=100 SLEEP=1000

5

transactions/index.ts

Generated from 4

(tick)

5.6h

CHUNK_SIZE=100 SLEEP=1000

3rd Script Run

Updating data from 24-08-20 to 24-09-02.

PointBalance.csv → 1.200.471 users
TransactionHistory.csv → 1.042.907 transactions

Script

Input File

Status

Duration

Params

1

deleteTransactions.ts

PointBalance.csv

(tick)

5h

CHUNK_SIZE=100 SLEEP=1000

2

transactions.ts

TransactionHistory.csv

(tick)

1h

CHUNK_SIZE=100 SLEEP=1000

3

transactions/index.ts

Generated from 2

(tick)

3.7h

CHUNK_SIZE=100 SLEEP=1000

4

users.ts

PointBalance.csv

(tick)

5h

CHUNK_SIZE=100 SLEEP=1000

5

transactions/index.ts

Generated from 4

(tick)

2h

CHUNK_SIZE=100 SLEEP=1000

4th Script Run

Updating data from 24-09-03 to 24-09-04.

PointBalance.csv → 238.224 users
TransactionHistory.csv → 67.051 transactions

Script

Input File

Status

Duration

Params

1

deleteTransactions.ts

PointBalance.csv

(tick)

1h21

CHUNK_SIZE=100 SLEEP=1000

2

transactions.ts

TransactionHistory.csv

(tick)

2.8min

CHUNK_SIZE=100 SLEEP=1000

3

transactions/index.ts

Generated from 2

(tick)

14.37min

CHUNK_SIZE=100 SLEEP=1000

4

users.ts

PointBalance.csv

(tick)

1h

CHUNK_SIZE=100 SLEEP=1000

5

transactions/index.ts

Generated from 4

(tick)

44min

CHUNK_SIZE=100 SLEEP=1000

5th Script Run

Updating data from 24-09-04 to 24-09-05.

PointBalance.csv → 184.324 users
TransactionHistory.csv → 71.129 transactions

Script

Input File

Status

Duration

Params

1

deleteTransactions.ts

PointBalance.csv

(tick)

47min

CHUNK_SIZE=100 SLEEP=1000

2

transactions.ts

TransactionHistory.csv

(tick)

3.2min

CHUNK_SIZE=100 SLEEP=1000

3

transactions/index.ts

Generated from 2

(tick)

1h8min

CHUNK_SIZE=100 SLEEP=1000

4

users.ts

PointBalance.csv

(tick)

1h17min

CHUNK_SIZE=100 SLEEP=1000

5

transactions/index.ts

Generated from 4

(tick)

3h41min

CHUNK_SIZE=100 SLEEP=1000

6th Script Run

Updating data from 24-09-05 to 24-09-09.

PointBalance.csv → 272.818 users
TransactionHistory.csv → 276.267 transactions

Script

Input File

Status

Duration

Params

1

deleteTransactions.ts

PointBalance.csv

(tick)

1h13min

CHUNK_SIZE=100 SLEEP=1000

2

transactions.ts

TransactionHistory.csv

(tick)

10min

CHUNK_SIZE=100 SLEEP=1000

3

transactions/index.ts

Generated from 2

(tick)

4h38min

CHUNK_SIZE=100 SLEEP=1000

4

users.ts

PointBalance.csv

(tick)

1h2min

CHUNK_SIZE=100 SLEEP=1000

5

transactions/index.ts

Generated from 4

(tick)

52min

CHUNK_SIZE=100 SLEEP=1000

7th Script Run

Updating data from 24-09-10 to 24-09-10.

PointBalance.csv 91.742 users
TransactionHistory.csv → 67.368 transactions

Script

Input File

Status

Duration

Params

1

deleteTransactions.ts

PointBalance.csv

(tick)

25min

CHUNK_SIZE=100 SLEEP=1000

2

transactions.ts

TransactionHistory.csv

(tick)

2min

CHUNK_SIZE=200 SLEEP=1000

3

transactions/index.ts

Generated from 2

(tick)

8min

CHUNK_SIZE=200 SLEEP=600

4

users.ts

PointBalance.csv

(blue star)

CHUNK_SIZE=100 SLEEP=1000

5

transactions/index.ts

Generated from 4

(error)

CHUNK_SIZE=100 SLEEP=1000

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.