benchv1

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_syncplane_bench_v1_bench_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ChecklistItem

type ChecklistItem struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	Done bool   `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
	// contains filtered or unexported fields
}

Element of Issue.checklist. Not an entity; identity comes from the field's key_field.

func (*ChecklistItem) Descriptor deprecated

func (*ChecklistItem) Descriptor() ([]byte, []int)

Deprecated: Use ChecklistItem.ProtoReflect.Descriptor instead.

func (*ChecklistItem) GetDone

func (x *ChecklistItem) GetDone() bool

func (*ChecklistItem) GetId

func (x *ChecklistItem) GetId() string

func (*ChecklistItem) GetText

func (x *ChecklistItem) GetText() string

func (*ChecklistItem) ProtoMessage

func (*ChecklistItem) ProtoMessage()

func (*ChecklistItem) ProtoReflect

func (x *ChecklistItem) ProtoReflect() protoreflect.Message

func (*ChecklistItem) Reset

func (x *ChecklistItem) Reset()

func (*ChecklistItem) String

func (x *ChecklistItem) String() string

type Comment

type Comment struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Issue       *Issue `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"`
	Author      *User  `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	Body        string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	CreatedAtMs int64  `protobuf:"varint,5,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
	// contains filtered or unexported fields
}

The append-heavy child. Comments outnumber issues, are small, and hang off a single reference — the shape that makes a reverse follow expensive and a recency window cheap.

func (*Comment) Descriptor deprecated

func (*Comment) Descriptor() ([]byte, []int)

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetAuthor

func (x *Comment) GetAuthor() *User

func (*Comment) GetBody

func (x *Comment) GetBody() string

func (*Comment) GetCreatedAtMs

func (x *Comment) GetCreatedAtMs() int64

func (*Comment) GetId

func (x *Comment) GetId() string

func (*Comment) GetIssue

func (x *Comment) GetIssue() *Issue

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

func (x *Comment) ProtoReflect() protoreflect.Message

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type Flat

type Flat struct {
	Id          string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Category    string            `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
	Note        string            `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	Amount      int64             `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
	Count       int32             `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
	Ratio       float64           `protobuf:"fixed64,7,opt,name=ratio,proto3" json:"ratio,omitempty"`
	Active      bool              `protobuf:"varint,8,opt,name=active,proto3" json:"active,omitempty"`
	CreatedAtMs int64             `protobuf:"varint,9,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
	Tags        []string          `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"`
	Attrs       map[string]string `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

The control. Deliberately the dullest row the engine can move: scalars, one repeated scalar and one map, no references, no text, no declared index. Its per-row bootstrap cost is the floor every other entity's cost is read against.

func (*Flat) Descriptor deprecated

func (*Flat) Descriptor() ([]byte, []int)

Deprecated: Use Flat.ProtoReflect.Descriptor instead.

func (*Flat) GetActive

func (x *Flat) GetActive() bool

func (*Flat) GetAmount

func (x *Flat) GetAmount() int64

func (*Flat) GetAttrs

func (x *Flat) GetAttrs() map[string]string

func (*Flat) GetCategory

func (x *Flat) GetCategory() string

func (*Flat) GetCount

func (x *Flat) GetCount() int32

func (*Flat) GetCreatedAtMs

func (x *Flat) GetCreatedAtMs() int64

func (*Flat) GetId

func (x *Flat) GetId() string

func (*Flat) GetName

func (x *Flat) GetName() string

func (*Flat) GetNote

func (x *Flat) GetNote() string

func (*Flat) GetRatio

func (x *Flat) GetRatio() float64

func (*Flat) GetTags

func (x *Flat) GetTags() []string

func (*Flat) ProtoMessage

func (*Flat) ProtoMessage()

func (*Flat) ProtoReflect

func (x *Flat) ProtoReflect() protoreflect.Message

func (*Flat) Reset

func (x *Flat) Reset()

func (*Flat) String

func (x *Flat) String() string

type Issue

type Issue struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Plain string, not collaborative text: this is the payload-weight dial for
	// the bulk entity, and giving it CRDT semantics would put text merge cost
	// into every issue benchmark. Notes are where text is measured.
	Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// To-one ref: the row stores only project.id, the target resolves on read.
	Project *Project `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
	// Two refs to the same target, so reverse accessors disambiguate.
	Assignee *User `protobuf:"bytes,5,opt,name=assignee,proto3" json:"assignee,omitempty"`
	Reporter *User `protobuf:"bytes,6,opt,name=reporter,proto3" json:"reporter,omitempty"`
	// To-many self-ref: a dependency chain, which is what `followDepth` > 1 has
	// to walk transitively.
	BlockedBy []*Issue `protobuf:"bytes,7,rep,name=blocked_by,json=blockedBy,proto3" json:"blocked_by,omitempty"`
	State     string   `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"`
	Priority  int32    `protobuf:"varint,9,opt,name=priority,proto3" json:"priority,omitempty"`
	Estimate  int32    `protobuf:"varint,10,opt,name=estimate,proto3" json:"estimate,omitempty"`
	// Write recency as a field. `byRecency` windows rank by workspace sequence
	// and need no field at all; this is its comparable counterpart, so a
	// benchmark can price an ordering the server has to read rows to compute.
	UpdatedAtMs int64 `protobuf:"varint,11,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
	CreatedAtMs int64 `protobuf:"varint,12,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
	// Repeated scalar with a field mark — membership is a range read and one
	// row occupies several index positions.
	Labels []string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty"`
	// Keyed message list: merged per element rather than replaced whole, so a
	// row's merge cost grows with the list rather than with the row.
	Checklist []*ChecklistItem `protobuf:"bytes,14,rep,name=checklist,proto3" json:"checklist,omitempty"`
	// contains filtered or unexported fields
}

The bulk entity. Roughly half of every tier's rows are issues, so bootstrap and window-maintenance numbers are dominated by this message's shape.

func (*Issue) Descriptor deprecated

func (*Issue) Descriptor() ([]byte, []int)

Deprecated: Use Issue.ProtoReflect.Descriptor instead.

func (*Issue) GetAssignee

func (x *Issue) GetAssignee() *User

func (*Issue) GetBlockedBy

func (x *Issue) GetBlockedBy() []*Issue

func (*Issue) GetBody

func (x *Issue) GetBody() string

func (*Issue) GetChecklist

func (x *Issue) GetChecklist() []*ChecklistItem

func (*Issue) GetCreatedAtMs

func (x *Issue) GetCreatedAtMs() int64

func (*Issue) GetEstimate

func (x *Issue) GetEstimate() int32

func (*Issue) GetId

func (x *Issue) GetId() string

func (*Issue) GetLabels

func (x *Issue) GetLabels() []string

func (*Issue) GetPriority

func (x *Issue) GetPriority() int32

func (*Issue) GetProject

func (x *Issue) GetProject() *Project

func (*Issue) GetReporter

func (x *Issue) GetReporter() *User

func (*Issue) GetState

func (x *Issue) GetState() string

func (*Issue) GetTitle

func (x *Issue) GetTitle() string

func (*Issue) GetUpdatedAtMs

func (x *Issue) GetUpdatedAtMs() int64

func (*Issue) ProtoMessage

func (*Issue) ProtoMessage()

func (*Issue) ProtoReflect

func (x *Issue) ProtoReflect() protoreflect.Message

func (*Issue) Reset

func (x *Issue) Reset()

func (*Issue) String

func (x *Issue) String() string

type Label

type Label struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

func (*Label) Descriptor() ([]byte, []int)

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetColor

func (x *Label) GetColor() string

func (*Label) GetId

func (x *Label) GetId() string

func (*Label) GetName

func (x *Label) GetName() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

func (x *Label) ProtoReflect() protoreflect.Message

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type Note

type Note struct {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Project     *Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
	Body        []byte   `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	UpdatedAtMs int64    `protobuf:"varint,5,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
	// contains filtered or unexported fields
}

Byte weight without row weight: few rows, each holding a collaborative-text document. Separated from Issue so the text CRDT's cost stays attributable instead of being spread across every issue in the corpus.

func (*Note) Descriptor deprecated

func (*Note) Descriptor() ([]byte, []int)

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetBody

func (x *Note) GetBody() []byte

func (*Note) GetId

func (x *Note) GetId() string

func (*Note) GetProject

func (x *Note) GetProject() *Project

func (*Note) GetTitle

func (x *Note) GetTitle() string

func (*Note) GetUpdatedAtMs

func (x *Note) GetUpdatedAtMs() int64

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect

func (x *Note) ProtoReflect() protoreflect.Message

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

type Project

type Project struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Short human key ("ENG-2"), the shape a real tracker addresses by.
	Slug        string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Status      string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAtMs int64  `protobuf:"varint,5,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
	// contains filtered or unexported fields
}

Dimension entity: few rows, referenced by many. A follow from an issue lands here, so it is also what a partial-sync client picks up beyond its base scope.

func (*Project) Descriptor deprecated

func (*Project) Descriptor() ([]byte, []int)

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetCreatedAtMs

func (x *Project) GetCreatedAtMs() int64

func (*Project) GetId

func (x *Project) GetId() string

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetSlug

func (x *Project) GetSlug() string

func (*Project) GetStatus

func (x *Project) GetStatus() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

func (x *Project) ProtoReflect() protoreflect.Message

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type User

type User struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Email     string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	Active    bool   `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

The other follow target. Issue points at it twice, which is what makes the reverse accessors disambiguate rather than collapse.

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActive

func (x *User) GetActive() bool

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL