Skip to content

Conversation

@27bslash
Copy link
Contributor

function processReduce(entries, meta) {
const result = entries.filter((e) => {
if (e.type === 'DOTA_COMBATLOG_PURCHASE'
if (e.type === 'DOTA_COMBATLOG_PURCHASE' || e.type === 'STARTING_ITEM'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can leave this out, we don't need this in the pro game logs.

@howardchung
Copy link
Member

This looks generally fine, but we might want to optimize how we store this data, as we'd be storing this x10 players for each match and storage is already the most expensive part of running the service.

@howardchung
Copy link
Member

This will need a rebase if it still should be merged, and the processor code is now in odota/parser.

If possible I'd also like to see an example of how this looks/changes the parser blob output so we can estimate the storage impact

@27bslash
Copy link
Contributor Author

27bslash commented Dec 2, 2025

I'm not sure this is necessary anymore. It is currently possible to get a players starting items by checking the players purchase_log and the purchase time <= 0.

@howardchung howardchung closed this Dec 2, 2025
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.

2 participants