Comments (6)
Thank you for the report, @gregsh! We'll take a look as soon as we can.
from gitbase.
Can you provide a step-by-step example we can reproduce? What operating system are you using?
I thought I reproduced it so I started investigating, but everything seemed to work in tests and when I manually wrote the query. Then I realised the trailing "
in your query, which was what made it wait forever expecting the end of the query.
So, after all, I cannot reproduce this problem.
from gitbase.
I'm introspecting gitbase schema using soon to be released version of DataGrip and Mysql Connector/J 8.0.15.
Here's the part of log, the ending quote does not belong to the query.
DEBU[31609] executing query query="/* ApplicationName=DataGrip 2019.3 Snapshot */ SHOW FULL COLUMNS FROM `blobs` FROM `gitbase` LIKE '%'" INFO[31609] audit trail action=authorization address="127.0.0.1:58216" connection_id=15 permission=read pid=79 query="/* ApplicationName=DataGrip 2019.3 Snapshot */ SHOW FULL COLUMNS FROM `blobs` FROM `gitbase` LIKE '%'" success=true system=audit user=guest INFO[31609] audit trail action=query address="127.0.0.1:58216" connection_id=15 duration="972.847ยตs" pid=79 query="/* ApplicationName=DataGrip 2019.3 Snapshot */ SHOW FULL COLUMNS FROM `blobs` FROM `gitbase` LIKE '%'" success=true system=audit user=guest
from gitbase.
Still cannot reproduce this.
I just connected using MySQL connector/J 8.0.15 with the following code:
val connection = DriverManager.getConnection(
"jdbc:mysql://%s?serverTimezone=UTC".format("localhost:3306"),
"root",
""
)
val meta = connection.getMetaData
val rs = meta.getColumns("gitbase", "", "%", "%")
while (rs.next()) {
println(rs.getString(3), rs.getString(4), rs.getString(5))
}
And it prints
(blobs,repository_id,-1)
(blobs,blob_hash,12)
(blobs,blob_size,4)
(blobs,blob_content,-4)
(commit_blobs,repository_id,-1)
(commit_blobs,commit_hash,12)
(commit_blobs,blob_hash,12)
(commit_files,repository_id,-1)
(commit_files,commit_hash,12)
(commit_files,file_path,-1)
(commit_files,blob_hash,12)
(commit_files,tree_hash,12)
(commit_trees,repository_id,-1)
(commit_trees,commit_hash,12)
(commit_trees,tree_hash,12)
(commits,repository_id,-1)
(commits,commit_hash,12)
(commits,commit_author_name,-1)
(commits,commit_author_email,12)
(commits,commit_author_when,93)
(commits,committer_name,-1)
(commits,committer_email,12)
(commits,committer_when,93)
(commits,commit_message,-1)
(commits,tree_hash,12)
(commits,commit_parents,1111)
(files,repository_id,-1)
(files,file_path,-1)
(files,blob_hash,12)
(files,tree_hash,12)
(files,tree_entry_mode,12)
(files,blob_content,-4)
(files,blob_size,4)
(ref_commits,repository_id,-1)
(ref_commits,commit_hash,12)
(ref_commits,ref_name,-1)
(ref_commits,history_index,4)
(refs,repository_id,-1)
(refs,ref_name,-1)
(refs,commit_hash,12)
(remotes,repository_id,-1)
(remotes,remote_name,-1)
(remotes,remote_push_url,-1)
(remotes,remote_fetch_url,-1)
(remotes,remote_push_refspec,-1)
(remotes,remote_fetch_refspec,-1)
(repositories,repository_id,-1)
(tree_entries,repository_id,-1)
(tree_entries,tree_entry_name,-1)
(tree_entries,blob_hash,12)
(tree_entries,tree_hash,12)
(tree_entries,tree_entry_mode,12)
In 413ms.
Tried both with master version and v0.24.0-rc1 using a docker container.
from gitbase.
I have found that it depends on the size of a repository. On a small one (70MB .git) it is fast, but on a large one (9GB .git) it is extremely slow.
from gitbase.
I just tried with the linux kernel and pytorch and it still takes milliseconds. Introspection never touches the repositories, so it should not depend on them.
Do you have indexes created in gitbase? Perhaps it's the indexes checksum when starting the server.
from gitbase.
Related Issues (20)
- UDF to extract imports from an UAST
- Connection problems and possible fix HOT 3
- Connection timeout is not being triggered on bblfsh long time ParseRequest handling HOT 3
- Use caches from new memory management API instead of custom ones.
- Non-persistent behavior on logging bblfsh parse errors HOT 10
- How to find the exact changes for each file in a commit like git diff HOT 4
- SHOW CREATE TABLE returns uppercase column types
- Blame: error kills connection and stop query.
- ERROR 1105 (HY000): unknown error: no memory available HOT 6
- Better logging HOT 3
- Empty result of query HOT 4
- Problem with distinct and order by HOT 1
- Natural join seems to eliminate rows which it shouldn't HOT 6
- Problem executing loc UDF
- Issue with commit_files on github.com/tensorflow/tensorflow HOT 1
- Missing function in Gitbase DB (MariaDB) HOT 4
- Java JDBC Connection Error: unknown error: expecting "EOF" but got 'V' instead
- Link to the community edition is dead. HOT 1
- The link of community-edition has broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitbase.