Code Monkey home page Code Monkey logo

Comments (5)

cpbritton avatar cpbritton commented on June 2, 2024 2

I fixed this by adding a regular checkpoint creation function. This reduces the number of file operations.

PR around auto checkpoints is #913

@scheduler_fn.on_schedule(schedule="*/5 * * * *", memory=options.MemoryOption.GB_1 , timeout_sec=1000) def checkpointdb(request): dt = DeltaTable("gs://bucket/deltalake/feed" , storage_options={"google_service_account_key": json.dumps(google_service_account_key)}) dt.create_checkpoint() print(f"DB Checkpoint" , flush=True)

from delta-rs.

roeap avatar roeap commented on June 2, 2024 1

in order to write a delta table, we also need to always know the latest state of the table. as such ever read also requires us to read all relevant log files at least once. Usually there may be one or more list operations as well.

Are you creating checkpoints? if not, we have to read one commit file for at least very transaction that was created on a table, which can become very sizeable.

We have a PR in flight, that will allow us to be more economic in terms of reads, especially in append-only scenarios, where we can disregard a lot of the log - again, given there are checkpoints.

from delta-rs.

rtyler avatar rtyler commented on June 2, 2024 1

I'm going to close this, I don't believe there is something actionable for the delta-rs project here

from delta-rs.

ion-elgreco avatar ion-elgreco commented on June 2, 2024

I wouldn't have the slightest clue what class B operations even resemble, I don't use GCP myself.

If you can break it down into lingo to non-gcp users that would help

from delta-rs.

gregorp90 avatar gregorp90 commented on June 2, 2024

@ion-elgreco mainly class B operations are for reading objects from Google Cloud Storage.

@roeap I'm not sure about checkpoints. I haven't defined any myself, so if write_deltalake is not using them by default I would assume I was not using them. Based on the numbers I provided does it make sense to get so many read/list operations?

Note: I later changed the implementation of simply adding new parquets as I figured out I don't really need the functionality of delta lake. I just wanted to point it out if anyone else had a similar problem. Especially since this can incur high unexpected costs on cloud providers.

from delta-rs.

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.