GitLab / Database Office Hours

Add meeting Rate page Subscribe

GitLab / Database Office Hours

These are all the meetings we have in "Database Office Hours" (part of the organization "GitLab"). Click into individual meeting pages to watch the recording and search or read the transcript.

10 Mar 2021

No description provided.
  • 4 participants
  • 21 minutes
geodb
geotracking
database
query
schema
maintainers
migrations
logs
estimates
replicable
youtube image

10 Feb 2021

No description provided.
  • 4 participants
  • 28 minutes
query
database
maintainers
gitlab
migrations
workflow
testing
greenhouse
craig
chat
youtube image

27 Jan 2021

Agenda doc (internal): https://docs.google.com/document/d/1wgfmVL30F8SdMg-9yY6Y8djPSxWNvKmhR5XmsvYX1EI/edit#

We give a demo for accessing database thin clones using psql, talk about Database Lab and our plans to implement fully automated database (migration) testing
  • 5 participants
  • 34 minutes
workflow
clone
pc
setup
postgres
ai
accessing
databases
exporting
typing
youtube image

18 Nov 2020

No description provided.
  • 6 participants
  • 41 minutes
reviewing
maintainer
updates
problems
git
helper
process
contribute
requests
staging
youtube image

12 Aug 2020

No description provided.
  • 3 participants
  • 13 minutes
merge
migrations
schema
patched
versions
milestones
sql
uploaded
batches
okay
youtube image

15 Jul 2020

No description provided.
  • 6 participants
  • 49 minutes
database
implementing
workflow
typecasting
alter
rewriting
merge
columns
command
jason
youtube image

17 Jun 2020

No description provided.
  • 5 participants
  • 25 minutes
validations
database
ensure
md5
encryption
issue
subscription
updated
feature
retransform
youtube image

20 May 2020

No description provided.
  • 9 participants
  • 35 minutes
column
upgrade
improvements
add
post
patch
configuration
backward
ports
helpers
youtube image

30 Apr 2020

No description provided.
  • 4 participants
  • 41 minutes
maintainer
maintain
maintained
manage
reviewer
trainees
helpers
rely
recommend
improve
youtube image

27 Apr 2020

No description provided.
  • 3 participants
  • 19 minutes
merge
query
records
id
process
migrations
needs
unique
going
000
youtube image

8 Apr 2020

No description provided.
  • 7 participants
  • 58 minutes
constraint
validated
checking
querying
careful
fixing
locking
establish
helper
executing
youtube image

26 Mar 2020

No description provided.
  • 9 participants
  • 50 minutes
schedule
plans
migrations
batches
delivery
guidelines
andreas
postgres
discussion
dba
youtube image

12 Mar 2020

No description provided.
  • 7 participants
  • 55 minutes
maintainers
maintainer
maintain
maintenance
reviewing
users
process
shouldn
scheduling
balances
youtube image

27 Feb 2020

No description provided.
  • 6 participants
  • 38 minutes
managed
configuration
column
concerns
opinions
add
representation
ensure
database
helper
youtube image

13 Feb 2020

No description provided.
  • 7 participants
  • 1:01 hours
migrations
monitoring
concerns
hmm
processing
insights
production
feature
boomers
giblet
youtube image

30 Jan 2020

No description provided.
  • 8 participants
  • 47 minutes
query
database
reviewing
revisiting
migrations
curry
introduce
upgraded
gradually
careful
youtube image

16 Jan 2020

No description provided.
  • 4 participants
  • 27 minutes
scanning
scheduled
issue
constraints
locking
updates
taking
retrying
migrations
robocop
youtube image

21 Nov 2019

  • 5 participants
  • 1:02 hours
query
migrations
administrative
ongoing
metaprogramming
having
sequel
scheduled
trouble
column
youtube image

7 Nov 2019

No description provided.
  • 3 participants
  • 33 minutes
primary
key
migrations
indexes
shouldn
issue
rails
maintenance
deployments
ids
youtube image

28 Sep 2019

Database Office Hours - 2019-09-28
  • 5 participants
  • 45 minutes
indexes
index
analysis
query
tree
metadata
wildcards
prefix
gram
users
youtube image

12 Sep 2019

No description provided.
  • 5 participants
  • 34 minutes
reviewing
benchmarks
analyzed
testing
performance
upgrades
managed
database
proposal
trouble
youtube image

29 Aug 2019

No description provided.
  • 6 participants
  • 42 minutes
marginalia
feature
consultancy
functionality
contribution
reviews
discussion
streaming
dashboard
querying
youtube image

9 Aug 2019

We optimize a query to retrieve TOP-100 projects for a user, bringing down query runtime from 7s to less than 20ms.

Context: https://gitlab.com/gitlab-org/gitlab-ce/issues/65854

The tricks applied are:
1. UNION push down instead of OR
2. ORDER BY, LIMIT push down into UNION branches
3. Partial index to efficiently retrieve TOP-K by ORDER BY criteria
  • 1 participant
  • 13 minutes
efficient
query
optimization
project
scan
minutes
production
execute
user
private
youtube image

25 Jul 2019

0:00 Efficient counters, usage ping, approximate counting, batched counting
2:10 Migrations: Background, post-deploy, regular
  • 6 participants
  • 58 minutes
migrations
batches
processing
transactional
execution
maintenance
ping
register
mutt
rep
youtube image

4 Jul 2019

In this video, I look at a rather complex query along with a proposed change. We figure out the difference this change makes and find ways to drastically improve the overall query performance.

We also touch on two rather typical query optimizations: Partial indexes and UNION over OR. This brings the query runtime down from 5,000ms to less than 100ms in our example.

Andreas Brandl - Sr. Database Reliability Engineer at GitLab: https://gitlab.com/abrandl

---

This is the MR we are looking at: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28887#note_185007453

We started to discuss about this complex query in https://www.youtube.com/watch?v=s70JhO1zt_8&t=2469s and we were wondering how to approach this from a reviewer perspective. I hope this recording gives an idea how even complex queries can be approached.
  • 1 participant
  • 32 minutes
improvements
improving
changes
versions
reviewer
discussed
query
analyze
curry
takes
youtube image

27 Jun 2019

* 0:00': Process to become database reviewer/maintainer and discussion around it
* 8:50' : Proposal to extend ChatOps to allow engineers to access a read/write copy of the production database for code reviews for insights (without actually having access to the data itself) [1]
* 22:50': Monitor transaction length [2], disallow unrelated IO during database transaction, improve transaction length generally
* 28:27': Normalized schema for storing timezones [3]
* 38:00': Example of high IO related to storing a lot of text in a column [4]
* 41:09': Review large query in a MR - how do approach it? [5]

Agenda and notes (internal to GitLab only):
https://docs.google.com/document/d/1wgfmVL30F8SdMg-9yY6Y8djPSxWNvKmhR5XmsvYX1EI/edit#

[1] https://gitlab.com/gitlab-com/www-gitlab-com/merge_requests/24156
[2] https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29928
[3] https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28339/diffs#note_185204007
[4] https://gitlab.com/gitlab-com/gl-infra/production/issues/908
[5] https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28887#note_185007453
  • 6 participants
  • 53 minutes
maintainer
manage
reorganize
merge
database
reviewing
edit
enterprise
introduce
interfaces
youtube image

7 Mar 2019

Mostly around database reviews and process

First part revolves around database review process and documentation, particularly these issues:
https://gitlab.com/gitlab-org/gitlab-ce/issues/52210
https://gitlab.com/gitlab-com/www-gitlab-com/merge_requests/19980
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25867

Performing 3 MR reviews on the call:
* Two MRs with regular migrations from 29:10
* Query optimization with partial index from 38:57
  • 5 participants
  • 1:08 hours
query
manage
reviewing
improvements
monitoring
gate
schedule
geo
migrations
enterprise
youtube image

24 Oct 2018

Episode 2 of Optimising Rails Database Queries. This time featuring a better microphone.
  • 1 participant
  • 26 minutes
optimizations
optimize
query
snippets
execute
compare
managed
sequel
method
simpler
youtube image

17 Oct 2018

In this video series we will take a look at optimising database queries in Rails applications. We'll be using GitLab as an example, but the techniques can be applied to other Rails applications as well.

The audio quality is unfortunately not the best, but I plan to sort this out before recording the second episode. Make sure to watch it in 1080p, otherwise the text will be too blurry.

The explain visualiser used in this episode can be found at https://explain.depesz.com/.
  • 1 participant
  • 18 minutes
execution
performance
analyze
buffered
slow
process
snippets
database
queries
optimize
youtube image