Giter Site home page Giter Site logo

Comments (9)

drewbanin avatar drewbanin commented on July 23, 2024

Hey @sphinks - I think you're totally right here - the changes we introduced in 0.7.x were optimized for correctness and not for speed. I think this is one case where it's better to be 99% correct and fast than 100% correct and slow. We have plans to revisit these models to make them a lot more performant, and I think a big part of that will be minimizing the "lookback" period as you're describing!

from snowplow.

sphinks avatar sphinks commented on July 23, 2024

Is it possible to make fix for this part of code write now? It will allow to upgrade to new branch and use lot of fixes, while waiting for big refactoring? I can prepare PR in case my idea is ok.

from snowplow.

drewbanin avatar drewbanin commented on July 23, 2024

Sure, feel free to submit a PR! I'd love to take a look at your approach here.

from snowplow.

sphinks avatar sphinks commented on July 23, 2024

@drewbanin have created PR: #69 Any idea how to check it 30 days are ok? I was checking plans with original and new code. Looks like new one is much better. But the issues is every project has it is own amount of events per month, so it is better to setup as small interval for session as possible in any case.

from snowplow.

jtcohen6 avatar jtcohen6 commented on July 23, 2024

In my experience on a previous project, where we had 2.5 months of Snowplow data (285mm events):

99.82% arrived within 1 hr of firing (diff b/w derived_tstamp + collector_tstamp)
99.88% arrived within 24 hr

We want to remove the full look-back and rebalance speed and correctness in 0.8.x. I wonder if we should even look back 30 days?

from snowplow.

drewbanin avatar drewbanin commented on July 23, 2024

@jtcohen6 @sphinks I'd be inclined to make it less than 30 days for sure. We can either do:

  1. Always reprocess the last 2-3 days of data
  2. Dynamically find the last day that dbt ran, then reprocess data in that interval

I think the second approach is more aligned with how dbt usually works. You guys buy that?

from snowplow.

sphinks avatar sphinks commented on July 23, 2024

@drewbanin but taking second approach is not reflecting the idea of initial commit as far as I understand. We talking events starting from last date dbt was running, but take a look in the whole history to find match for session. In case we replace history match with last date dbt was running, do we have any new info? I mean history interval we are reprocessing will be equal to interval of non processed events. Am I misunderstand second approach?

from snowplow.

sphinks avatar sphinks commented on July 23, 2024

Have created a PR #71 to fix the issue.

from snowplow.

jtcohen6 avatar jtcohen6 commented on July 23, 2024

Closing this issue, since we merged #71 and released 0.8.0

from snowplow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.