-
Notifications
You must be signed in to change notification settings - Fork 0
Implement commit_contains(commit_hash, commit_blob)bool UDF #7
Comments
Depends on src-d/go-mysql-server#1 |
This is missing the repo_id parameter, right? |
After a talk we decided to do not add repo_id. The performance of that udfs will be improved using indexes. At the begining will be really slow. |
So, if the Repository Pool does not have all repositories opened, right? So you can't just iterate them all until you find a match. The UDF should receive something with the repo associated to the given row or something along those lines. Otherwise, where is the UDF supposed to look for? |
Given a commit hash, it will always contains the specified blob or not. In the future, we will have a bitmap index to be able to answer this kind of questions. Right now, the only way that we have to do it is iterate over all the repositories. |
So, for each row that uses that UDF we have to iterate all repositories again? |
Right now, yes. In the future it will be a simple query to an index. Also the UDF can be improved to be executed at the table iterator level, like another column. Doing this, you don't need to iterate over all the repositories per each column again. |
No description provided.
The text was updated successfully, but these errors were encountered: