diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-20 21:00:21 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-20 21:00:21 +0000 |
commit | feabfb1809b911fc97538282234c8b1f087ddb6a (patch) | |
tree | 8fc484f46f1c2c191ccb0a72fcbebfcad38bc115 /lib/PublicInbox/Inbox.pm | |
parent | b42bbc915750cf2f0c559514041ba3f5d1a44a12 (diff) | |
download | public-inbox-feabfb1809b911fc97538282234c8b1f087ddb6a.tar.gz |
This is too slow, currently. Working with only 2017 LKML archives: git-only: ~1 minute git + SQLite: ~12 minutes git+Xapian+SQlite: ~45 minutes So yes, it looks like we'll need to parallelize Xapian indexing, at least.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 2ec2be69..e7856e3c 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -79,7 +79,9 @@ sub new { sub git { my ($self) = @_; $self->{git} ||= eval { - my $g = PublicInbox::Git->new($self->{mainrepo}); + my $git_dir = $self->{mainrepo}; + $git_dir .= '/all.git' if (($self->{version} || 1) == 2); + my $g = PublicInbox::Git->new($git_dir); $g->{-httpbackend_limiter} = $self->{-httpbackend_limiter}; _cleanup_later($self); $g; |