GithubHelp home page GithubHelp logo

Comments (4)

ajnavarro avatar ajnavarro commented on June 15, 2024 1

Hi @sakalouski

You cannot access files anymore. You need to get blobs or tree_entries, depending on what do you want to do.

Don't hesitate to ask if you have some other doubts.

from jgit-spark-connector.

sakalouski avatar sakalouski commented on June 15, 2024

@ajnavarro Thanks a lot - it worked - got the access to the file contents.
Do You probably know, how to get git blame data? In other words, I want to get the code of each commit. I could probably do it as difference of previous version and the current one, but do not think that it is the most efficient way.
Another question: searching over the .siva database, I have noticed that spark uses anomalously tiny portion of resources (10% of all the cores), while on .parquet data it uses around 80-90%. As a result, materializing 1 entry from 3 Gb folder (something.filter().take(1)) takes ~10 seconds. Any ideas, how to fix it?

Changing parameters of spark, like core numbers and executor memory does not give anything. Repartitioning does not improve the performance.

Thank You!

from jgit-spark-connector.

ajnavarro avatar ajnavarro commented on June 15, 2024

Do You probably know, how to get git blame data?

We don't have any specific logic for that. To emulate git blame you should go over a reference history reading the specific file and getting modified lines comparing blob contents and the commit committer name and email (standard git blame is doing basically that).

Another question: searching over the .siva database, I have noticed that spark uses anomalously tiny portion of resources (10% of all the cores), while on .parquet data it uses around 80-90%.

When you are processing Siva files, most of the time it will be reading content from that Siva files. Essentially they are git repositories with packfiles, so data is heavily compressed. Also, we parallelize per repository, that means that your process will be as slow as the biggest repository or siva file. I recommend you to preprocess your data and save it to parquet.

from jgit-spark-connector.

sakalouski avatar sakalouski commented on June 15, 2024

from jgit-spark-connector.

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.