Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b09df006
Unverified
Commit
b09df006
authored
Jan 09, 2026
by
Tobias Koppers
Committed by
GitHub
Jan 09, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: add family to database read span (#88323)
### What? This makes database read spans being grouped per family
parent
40ad57e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
db.rs
turbopack/crates/turbo-persistence/src/db.rs
+7
-4
No files found.
turbopack/crates/turbo-persistence/src/db.rs
View file @
b09df006
...
@@ -1338,8 +1338,11 @@ impl<S: ParallelScheduler, const FAMILIES: usize> TurboPersistence<S, FAMILIES>
...
@@ -1338,8 +1338,11 @@ impl<S: ParallelScheduler, const FAMILIES: usize> TurboPersistence<S, FAMILIES>
/// might hold onto a block of the database and it should not be hold long-term.
/// might hold onto a block of the database and it should not be hold long-term.
pub
fn
get
<
K
:
QueryKey
>
(
&
self
,
family
:
usize
,
key
:
&
K
)
->
Result
<
Option
<
ArcSlice
<
u8
>>>
{
pub
fn
get
<
K
:
QueryKey
>
(
&
self
,
family
:
usize
,
key
:
&
K
)
->
Result
<
Option
<
ArcSlice
<
u8
>>>
{
debug_assert!
(
family
<
FAMILIES
,
"Family index out of bounds"
);
debug_assert!
(
family
<
FAMILIES
,
"Family index out of bounds"
);
let
span
=
let
span
=
tracing
::
trace_span!
(
tracing
::
trace_span!
(
"database read"
,
family
,
result_size
=
tracing
::
field
::
Empty
)
"database read"
,
name
=
family
,
result_size
=
tracing
::
field
::
Empty
)
.entered
();
.entered
();
let
hash
=
hash_key
(
key
);
let
hash
=
hash_key
(
key
);
let
inner
=
self
.inner
.read
();
let
inner
=
self
.inner
.read
();
...
@@ -1410,7 +1413,7 @@ impl<S: ParallelScheduler, const FAMILIES: usize> TurboPersistence<S, FAMILIES>
...
@@ -1410,7 +1413,7 @@ impl<S: ParallelScheduler, const FAMILIES: usize> TurboPersistence<S, FAMILIES>
debug_assert!
(
family
<
FAMILIES
,
"Family index out of bounds"
);
debug_assert!
(
family
<
FAMILIES
,
"Family index out of bounds"
);
let
span
=
tracing
::
trace_span!
(
let
span
=
tracing
::
trace_span!
(
"database batch read"
,
"database batch read"
,
family
,
name
=
family
,
keys
=
keys
.len
(),
keys
=
keys
.len
(),
not_found
=
tracing
::
field
::
Empty
,
not_found
=
tracing
::
field
::
Empty
,
deleted
=
tracing
::
field
::
Empty
,
deleted
=
tracing
::
field
::
Empty
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment