YouTube2Text

Work Items API performance WG - 2025-03-18 — Transcript

by GitLab Unfiltered · 8,740 words · 1,225 segments · language en · Watch on YouTube

Full transcript

  1. 0:03yeah hey everyone this is a work items
  2. 0:06performance API working group today is
  3. 0:08March
  4. 0:0918 um so yeah let's start with the
  5. 0:13updates I verbalized for Eugenia who can
  6. 0:15join she's still working on the N plus
  7. 0:18ones uh from the linked items widget uh
  8. 0:21and she needed to change the approach uh
  9. 0:25for a technical reason uh but yeah uh
  10. 0:29still need to try a different solution
  11. 0:32this week uh and yeah Alexandro you have
  12. 0:35a next
  13. 0:38up yeah so from from our last discussion
  14. 0:41I was encountering this uh huge overhead
  15. 0:44from graphql versus what I was seeing
  16. 0:47from the database uh I paired with
  17. 0:49Hinrich we didn't see anything that
  18. 0:53could be improved right away but then
  19. 0:55like afterwards I I realized that they
  20. 0:58enabled method for the bullet doesn't
  21. 1:01actually disable it it just changes some
  22. 1:04of the on the level of the uh logging CU
  23. 1:08like I disabled Bullet by disabling the
  24. 1:10enabled method um and then I realized
  25. 1:13that's not the one that doing it so just
  26. 1:16disabling the bullet locally uh got the
  27. 1:20query to execute from 10 plus seconds
  28. 1:23seconds to around one and a half second
  29. 1:26uh that's definitely a huge Improvement
  30. 1:30uh but it's still I think there is still
  31. 1:32room to improve it even from 1.5 seconds
  32. 1:35if you consider that the the postgress
  33. 1:38part the the database part is
  34. 1:41taking pretty much always under 50
  35. 1:44milliseconds locally so it there's
  36. 1:46should be no reason to have a 30X I
  37. 1:49think a 10x should be achievable I would
  38. 1:51say but um I didn't get to spend more
  39. 1:55much more time on that afterwards uh so
  40. 1:59I I don't know if we can achieve it or
  41. 2:02not but like from a very high level
  42. 2:05perspective that that does sound
  43. 2:06reasonable to me so maybe maybe I'll get
  44. 2:09to spend a bit more time again uh into
  45. 2:11trying to see if I can get it down from
  46. 2:131.5 to a bit
  47. 2:16lower do you have any guess where we
  48. 2:20spent the most of the time uh yeah the
  49. 2:23time was spent after
  50. 2:25fetching the uh the data from the
  51. 2:29database right so not not like parsing
  52. 2:31the the query itself didn't seem to take
  53. 2:35that much time it was like all of this
  54. 2:37was mostly happening afterwards like
  55. 2:39cing the data and then trying to render
  56. 2:41that whole tree and that I guess that's
  57. 2:43where bullet kind of kicked in as well
  58. 2:46and and it was trying to do some logging
  59. 2:48tracking and all that so it was adding
  60. 2:51um more overhead to whatever was already
  61. 2:55there so okay then my suggestion to try
  62. 2:59pre compiled Cruise doesn't help any
  63. 3:02with
  64. 3:04anything I I I think everything helps I
  65. 3:06don't know though how much right like
  66. 3:08that that's something if it's like below
  67. 3:09100 milliseconds for one and a half
  68. 3:11seconds it's it's not the thing that we
  69. 3:13are looking at yeah yeah I can try it
  70. 3:15out and see if that like how much that
  71. 3:18shaves off of that 1. half 1.5 seconds
  72. 3:21again that's what that 1.5 seconds it's
  73. 3:24not like set in stone it's sometimes 1.3
  74. 3:26sometimes it's two seconds it's like it
  75. 3:28ver it's hard to to measure sorry
  76. 3:31H yeah regarding parsing we also log
  77. 3:34this right now in our graphql logs so we
  78. 3:37have some data here to see how much we
  79. 3:39could save uh yeah last time I checked
  80. 3:43it was a pretty small number because I
  81. 3:44was looking at because we had random
  82. 3:47like validation timeouts right during
  83. 3:49these parsing and like some people were
  84. 3:51encountering that so I saw that they
  85. 3:53were like very small numbers but then
  86. 3:56some it just happens I don't know like
  87. 3:58some GC happens or whatever right it
  88. 4:00goes over the time out but yeah I just
  89. 4:02wanted to add also another thing
  90. 4:04regarding the profiling you're doing
  91. 4:05like sometimes it's also tricky to do
  92. 4:08profiles on the local environment um
  93. 4:12especially you know running rails and in
  94. 4:15development could like you know behave
  95. 4:17differently so it might be worthwhile
  96. 4:20testing in like staging or something I
  97. 4:22don't know just a suggestion
  98. 4:29yeah so like for for validation where we
  99. 4:32are tracking it we have a timeout of 0.2
  100. 4:35seconds so around 200 millisecond so if
  101. 4:38I guess if parsing would not fit within
  102. 4:41those 0.2 seconds it will fail somehow
  103. 4:46so yeah I don't know how much we can we
  104. 4:48can gain from from just
  105. 4:51cashing I mean we we will gain but we
  106. 4:53are not yet at that point of saving like
  107. 4:56I don't know 50 more milliseconds or
  108. 4:58something like that right
  109. 5:04maybe a stupid question but what is
  110. 5:07bullet it's it's a gem to track n plus
  111. 5:12ones um it's a development gem that we
  112. 5:15only like we enable it on development to
  113. 5:17track on plus ones it will highlight
  114. 5:19that if you have some of
  115. 5:22them do you want to try this idea that
  116. 5:25HRI just suggested of profiling on
  117. 5:27staging or some other environment
  118. 5:33uh I can I can take a look at it uh
  119. 5:36again I
  120. 5:38don't uh anything specific that I would
  121. 5:42want to look into just just check the
  122. 5:46timings on stage yeah it's more like my
  123. 5:49question is about like you know is the
  124. 5:51difference in cre time versus response
  125. 5:53time only visible in Dev or also in
  126. 5:55production M so just so we you know rule
  127. 5:58out any development
  128. 6:00uh uh thing yeah I I guess I can run
  129. 6:03some flame graphs on staging as well
  130. 6:07right like against staging the the
  131. 6:09problem though is that locally I can
  132. 6:11tweak my qu I guess I can tweak the
  133. 6:14query for staging as well yeah I
  134. 6:16probably can do that I probably can do
  135. 6:19that um CU I was like eliminating all of
  136. 6:22those uh widgets that create n plus ones
  137. 6:25and and some of the permissions so
  138. 6:27probably I can I can customize the query
  139. 6:29just so that it it fits whatever I'm
  140. 6:32doing locally yeah I'll I'll I'll give
  141. 6:34it a try I'll take a
  142. 6:44look there
  143. 6:46go so yesterday I paired with uh met uh
  144. 6:51on the nonmembers issue it's kind of
  145. 6:54hard to test it locally locally we don't
  146. 6:56see the the performan error as as big of
  147. 7:01a difference as we see in production in
  148. 7:03production is very
  149. 7:04explicit uh good idea in to testing
  150. 7:09staging as well I'll try to say that but
  151. 7:13also mat found something later uh and
  152. 7:17Nicholas just mentioned that we had that
  153. 7:19similar optimization already done
  154. 7:21somewhere else so I'll try that today to
  155. 7:23apply that optimization on this query
  156. 7:26there and see if we can find something
  157. 7:32want to quickly mention something that's
  158. 7:35okay we recently merged uh NMR to fix
  159. 7:39some of the permissions Pro permission
  160. 7:41problems for advanced search in relation
  161. 7:43to epex but I think we also improve the
  162. 7:46performance quite a bit so we use a tree
  163. 7:49structure for group level searches and I
  164. 7:52can share the mrr maybe we can pull some
  165. 7:55of the changes from that Mr and make
  166. 7:58this optimization
  167. 8:00more generic let's say so I will post it
  168. 8:08here sure let's do on
  169. 8:13Mr this
  170. 8:18one so we've we we're using some unique
  171. 8:23things to make group level searches
  172. 8:25performant because sometimes we have too
  173. 8:28many epics too many groups the hierarchy
  174. 8:31is so large so usually we use a tree
  175. 8:35structure so we build permission tree
  176. 8:39essentially and optimize it as much as
  177. 8:42possible so if you have maybe access to
  178. 8:45gab or 970 you don't really need any
  179. 8:49other permissions down the line you know
  180. 8:51that you have access to everything so
  181. 8:54you can just
  182. 8:55shortcut all the permission checks and
  183. 8:58make it much more efficient just wanted
  184. 9:00to mention it
  185. 9:03here yeah that's basically similar to
  186. 9:06the optimization we did for epics which
  187. 9:08traverses the tree and kind of like
  188. 9:10shortcuts the children if uh some
  189. 9:12condition is met so I think it's good to
  190. 9:15like look into that and generalize this
  191. 9:18uh solution into yeah something reusable
  192. 9:21I also attach the tree structure we are
  193. 9:23using here because I'm not sure if we're
  194. 9:26using that for epics or anywhere else
  195. 9:30apart from advanced search we have an in
  196. 9:33progress andr for some I think
  197. 9:36pages settings so i' recommend using
  198. 9:39this tree structure there and it make
  199. 9:42made it much more
  200. 9:44efficient so instead of plus one it's
  201. 9:46one
  202. 9:48query uh this is not something to answer
  203. 9:51here but just like as an idea because
  204. 9:56this feels to me very similar to our
  205. 9:59project authorizations just done at the
  206. 10:01group level obviously the implementation
  207. 10:04will be different because we need to
  208. 10:05care now about a three of nodes rather
  209. 10:08than a flat list of projects but do you
  210. 10:13think it makes sense because what I what
  211. 10:15I understand is we will compute this
  212. 10:19authorization tree basically every time
  213. 10:21we want to search something right so we
  214. 10:23would first compute whatever the tree
  215. 10:26for authorizing these groups should look
  216. 10:29like if I have the top level group that
  217. 10:31I only need that part and so on but we
  218. 10:34would do it every time you want to
  219. 10:35search it so instead of doing that maybe
  220. 10:38we can I don't think it changes all that
  221. 10:40often so maybe it makes sense to to also
  222. 10:43cash it so you don't have to comput it
  223. 10:45every time you want to filter or search
  224. 10:48but you do it once and then you update
  225. 10:50it whenever the membership or the
  226. 10:52permissions change as well um so it's
  227. 10:56kind of more of a longer term caching
  228. 10:58rather than caching right before you
  229. 11:00want to do it cuz I would
  230. 11:03assume it does get expensive in in some
  231. 11:06scenarios as well to to compute this
  232. 11:08three so most of the time we compute it
  233. 11:11for a specific user so it's not the
  234. 11:14entire hierarchy we're Computing that
  235. 11:16but maybe you have access to several
  236. 11:19subgroups in a namespace so we calculate
  237. 11:22this tree for this specific user so we
  238. 11:25don't have to Traverse the entire uh the
  239. 11:28entire namespace tree the entire
  240. 11:32hierarchy so we kind of flipped
  241. 11:35the checks if that makes sense and made
  242. 11:37it much more performant yeah yeah what
  243. 11:40I'm trying to say is like does it make
  244. 11:43sense to to kind of have this cached
  245. 11:45already for the user right because you
  246. 11:48we kind of know this user is part of
  247. 11:50these groups so you can have it
  248. 11:52precomputed basically for for that user
  249. 11:55and whenever that user is removed or
  250. 11:57added to a different group you can you
  251. 11:58can always always kind of recompute it
  252. 12:01have it there and whenever you need to
  253. 12:03do a search you just fetch it without
  254. 12:04having to compute it every time right so
  255. 12:07it kind of feels natural but I don't
  256. 12:09know if there is any anything to be
  257. 12:11aware of or or or scared or yeah maybe
  258. 12:15that could be an optimization for later
  259. 12:18time but I think we haven't encountered
  260. 12:20any issues with loading user kind of
  261. 12:24permissions I think it was extremely
  262. 12:26efficient compared to in the entire
  263. 12:30namespace hierarchy let's say so maybe
  264. 12:33if we see that this becomes a problem we
  265. 12:35can cach it but we probably shouldn't
  266. 12:37catch it unnecessarily if that makes
  267. 12:42sense yeah sounds
  268. 12:46good would that solve uh the permissions
  269. 12:51problem we discussed in the very
  270. 12:53beginning uh like for everything andri
  271. 12:57how how much how long does it take to
  272. 13:00build that tree is it like 50 100
  273. 13:04milliseconds I think less than 100
  274. 13:07milliseconds but I I haven't checked it
  275. 13:09recently we can we can double check
  276. 13:11maybe after we merged thism more we can
  277. 13:14we can even get some maybe even
  278. 13:16production
  279. 13:19numbers I I think it will help but it
  280. 13:21will not completely solve it um because
  281. 13:25like if we take the scenario where we
  282. 13:28computed and we figure out that we we
  283. 13:31this user has access into like 100
  284. 13:35different groups right and you need to
  285. 13:37query anyway then then the queries do
  286. 13:40become slow anyway because they need to
  287. 13:42load all the issues for all this 100
  288. 13:44name spaces sort them in a specific
  289. 13:47order and only then pull the like the
  290. 13:49top 100 or top a th whatever so so
  291. 13:53that's one part of the optimization that
  292. 13:55is probably going to help quite a bit I
  293. 13:57would assume but it's not the full the
  294. 13:59full picture right um so we still need
  295. 14:02to figure out how do we make the the
  296. 14:06query fast enough in in those particular
  297. 14:10scenarios yeah I think it doesn't really
  298. 14:12solve the query problem unless you're
  299. 14:14sending a huge maybe group ID list so if
  300. 14:19you if you try to send thousands of
  301. 14:21group IDs to filter documents it also
  302. 14:23becomes really slow we've encountered
  303. 14:26that with non-group based document types
  304. 14:30so if you just call I don't know do all
  305. 14:34projects on a namespace and send this
  306. 14:36entire list it's really inefficient so
  307. 14:40that's why we started switching to group
  308. 14:42based filtering so we are trying to
  309. 14:44filter it by group first and then
  310. 14:47projects only if necessary maybe have
  311. 14:50access to some specific
  312. 14:52projects across the entire group so we
  313. 14:55have Traverse Traverse IDs prefix and
  314. 14:59some additional authorized projects on
  315. 15:02top of
  316. 15:04that I think it should be still pretty
  317. 15:07efficient and I would imagine that for
  318. 15:09most customers it's not hundreds of Nam
  319. 15:12spaces they have access to it's maybe
  320. 15:15several
  321. 15:18namespaces so I think that's what makes
  322. 15:20it much more
  323. 15:25efficient yeah but the way I understand
  324. 15:27that we can't really
  325. 15:29search issues at the moment or work
  326. 15:32items for projects just by the group ID
  327. 15:34like we don't have the traversal ID or
  328. 15:36anything like this right so right now
  329. 15:40for work item set still will be the
  330. 15:42project list in the
  331. 15:44end or am I wrong I think right now
  332. 15:49sorry
  333. 15:51yeah I I just want to mention that right
  334. 15:54now we're searching work items I think
  335. 15:57using troversial IDs if it's if you
  336. 16:00select a project then we filter it by
  337. 16:03project ID but if it's a group search I
  338. 16:06think we mostly rely on pre prefix and
  339. 16:08traversal
  340. 16:11IDs like even for projects who can use
  341. 16:13traversal IDs because a project has a
  342. 16:15namespace record which then in turn has
  343. 16:18the traversal IDs uh column as well
  344. 16:22so I don't think it makes a difference
  345. 16:25just because projects are always a leaf
  346. 16:27node so so like there is no much use
  347. 16:32basically in having that project ID
  348. 16:34within the traversal ID list because
  349. 16:36it's always going to be the last one so
  350. 16:39yeah that I don't know if that helps uh
  351. 16:43maybe there is some other tweak there
  352. 16:44where we can still get some performance
  353. 16:47out of that but other otherwise it feels
  354. 16:50like sending the traversal IDs after
  355. 16:53this project ID or just using the
  356. 16:55project ID is kind of the same thing
  357. 16:57because it's always the last the last
  358. 16:59node in the
  359. 17:01list yeah I for some reason thought that
  360. 17:03we don't have it at all uh for work
  361. 17:06items so great to hear that we do uh
  362. 17:09then kind of final question for me do we
  363. 17:13does anyone wants to take it as a to-do
  364. 17:16to look into DMR and see how we can
  365. 17:18adopt it for work
  366. 17:26items I'd love to take a look but I
  367. 17:29don't think I'll have capacity to do it
  368. 17:31this week because I do have to work on
  369. 17:34some other stuff as well um but like I
  370. 17:38can put it on my to-do list I don't
  371. 17:42know um like do I need to commit to it
  372. 17:45being like an investigation that I Do by
  373. 17:49XY Z like I I'd like to know how can I
  374. 17:52like what kind of priority I need to
  375. 17:54give it and then how I structure my
  376. 17:56other work uh out on on top of this or
  377. 18:00or or or this within the other work that
  378. 18:03I need to
  379. 18:09do I mean if sorry Nicholas you wanted
  380. 18:13to say
  381. 18:13something for me it's the same answer as
  382. 18:16Alexandro but Casio and Matt you
  383. 18:18actually looking into this right so you
  384. 18:20can first try to try to fix it we
  385. 18:23already have and then look that was that
  386. 18:26was my idea yeah I'll try to fix with
  387. 18:28what we have and since it's similar I'll
  388. 18:31take a look as well but I I wouldn't
  389. 18:33like to make a commitment on really
  390. 18:35going deep on that because I have other
  391. 18:36stuff as well it's actually the same
  392. 18:40answer so so maybe we'll leave this to
  393. 18:43as a next point to our next meeting like
  394. 18:45no one has to take it on but then by the
  395. 18:48by the next meeting we'll also know a
  396. 18:50little bit more about our workload and
  397. 18:52and who's doing what cuz like again I if
  398. 18:55I try to test that on staging and what
  399. 18:57not it will take me some time that's one
  400. 19:00point that I can bring up to the next
  401. 19:01meeting then if I'm done with that I can
  402. 19:04probably pick up this one as the next
  403. 19:07item that I can look into if someone
  404. 19:09else is didn't try it or or someone or
  405. 19:11something like that so what do you think
  406. 19:12about that like maybe we postpone it one
  407. 19:15week unless we have capacity to someone
  408. 19:18to to pick it up it doesn't seem like
  409. 19:20that I think Eugenia has something on
  410. 19:22her play and Alisa has something as well
  411. 19:25on her play so
  412. 19:27yeah yeah sounds good uh let's postpone
  413. 19:31it to the next one um my only ask
  414. 19:35Dimitri can you open a like placeholder
  415. 19:37issue for it and ping me on it just I
  416. 19:40don't know reference Mr I'll put it
  417. 19:43somewhere in the plan so we don't lose
  418. 19:45the idea all right sounds good
  419. 19:51thanks Henrik you have an next Point
  420. 19:54yeah so I continued looking at the
  421. 19:56queries and I was like we had an issue
  422. 19:58for the band user thing so I looked into
  423. 20:00that and I tried I posted there I tried
  424. 20:03using a CTE to force it to uh evaluate
  425. 20:06the band users last U because my initial
  426. 20:10assumption was postgress was trying to
  427. 20:12do the wrong thing right but um yeah
  428. 20:16with the CTE it was fast but I
  429. 20:18realized I didn't put the order Clause
  430. 20:22at the uh outer query uh Nicholas you
  431. 20:25have a question around it and um found
  432. 20:28out about it because the specs fail and
  433. 20:31I read the docs and it says
  434. 20:34that um I saw some like Forum post that
  435. 20:38said like the order is preserved in a
  436. 20:40CTE but it's not like you know you you
  437. 20:44shouldn't rely on it being like that
  438. 20:46like it's like a side effect rather than
  439. 20:48like an intended Behavior oh
  440. 20:51post okay yeah I have to confirm but
  441. 20:53that's what I remember seeing and then
  442. 20:56the specs also said that it wasn't
  443. 20:58returned in order right so there must be
  444. 20:59something maybe in the newer version
  445. 21:01it's already not ordered or something I
  446. 21:03don't know but
  447. 21:05um but yeah that was so that didn't work
  448. 21:09but also while investigating I saw
  449. 21:12interesting data like for gab.com we
  450. 21:15actually have over one million ban users
  451. 21:18and that's part of the problem why the
  452. 21:19post chooses a bad plan um it doesn't
  453. 21:22try to do it last because the band users
  454. 21:24is also a big uh
  455. 21:26table um
  456. 21:29I saw a solution
  457. 21:32where
  458. 21:34the projects I don't know who was who
  459. 21:37was doing the project thing where
  460. 21:39like a band users projects are deleted
  461. 21:42after 60 days um is the new thing that
  462. 21:45someone else is working on some other
  463. 21:47team is working on right now so we could
  464. 21:49do a similar thing where after 60 days
  465. 21:52we delete the use uh the users issues
  466. 21:54authored issues and then we Mark the ban
  467. 21:57user record as like you know issues
  468. 21:59deleted or something so when we do the
  469. 22:01exist Clause we only include band users
  470. 22:04where um issues deleted equals false
  471. 22:08right so these are like the newly banned
  472. 22:10users I don't know if it would help it's
  473. 22:12just like a thought Theory at this point
  474. 22:15but yeah um that's one possibility and
  475. 22:19the other thing I tried that kind of
  476. 22:22works it's like to add an index a
  477. 22:25partial index with a like where work
  478. 22:28item type ID is in the like the default
  479. 22:31types then the band users filter is also
  480. 22:33fast in that case
  481. 22:35because um it uses the Sorting already
  482. 22:38on that first organizm type ID filter so
  483. 22:41basically the problem I see is that we
  484. 22:43have these filters that aren't really
  485. 22:45filtering out that many issues right
  486. 22:48there's like it adds a clause but then
  487. 22:50doesn't filter out many
  488. 22:52um rows that's the band users filter and
  489. 22:56also the workm type because like most
  490. 22:59are issues right and we're just adding
  491. 23:01that clause which you know post has to
  492. 23:03work through but then not filter out
  493. 23:05anything um yeah Alexander you have a
  494. 23:09question yeah I wanted to like do you
  495. 23:13know if we are ever deleting these band
  496. 23:17users um and and like we have the band
  497. 23:19users table where we would retain some
  498. 23:23of the maybe dat metadata of this user
  499. 23:25like the email that they use so we don't
  500. 23:27allow them to be creating another
  501. 23:30user as a different like I don't know
  502. 23:32username and stuff like that but then
  503. 23:34like it kind of makes sense to delete
  504. 23:37the users records because then we don't
  505. 23:39have to to join those users or things
  506. 23:42like that I I don't know so like I want
  507. 23:43to to try and cut down on the amount of
  508. 23:47the at least Mill because this is going
  509. 23:49to only grow right like this is never
  510. 23:51going to to be um deleted because we
  511. 23:54want to retain these uh abuser users or
  512. 23:57whatever uh band users list but we
  513. 24:00should not have to always join with this
  514. 24:03this table because this is going to
  515. 24:05become more and more of a problem on
  516. 24:08every level where we where we need to to
  517. 24:10filter out meta like data from band
  518. 24:14users yeah so I haven't checked with the
  519. 24:17abuse team about their like like how
  520. 24:20they use these band user table and if if
  521. 24:22you know if ever these ever get deleted
  522. 24:25or it's just going to just grow um but
  523. 24:28yeah like I said one idea to make the
  524. 24:31table or like the list of IDs smaller
  525. 24:34when you filter out is to add another
  526. 24:35column like an issues deleted something
  527. 24:38but yeah it adds extra overhead I guess
  528. 24:42but with an index you can easily find
  529. 24:43the ones that you need to filter out
  530. 24:45maybe I don't know but yeah I don't know
  531. 24:49if it will help because you still need
  532. 24:51to join on the band user so you kind of
  533. 24:55need to filter by those users anyway I
  534. 24:59don't know like we need to to look at a
  535. 25:01plan uh but
  536. 25:04yeah it will be like just nice to not
  537. 25:07have to join with that table as well
  538. 25:09like if you are removing B like banned
  539. 25:12user data every now and then you don't
  540. 25:15even need to join on that like you'll
  541. 25:17slip in some of the bad issues so to say
  542. 25:20right periodically but if you constantly
  543. 25:24clean it up you don't even have to join
  544. 25:27that table because eventually you'll
  545. 25:29clean up that bay data anyway but yeah
  546. 25:32anyway yeah but there are like yeah some
  547. 25:34ux concerns like you know like a spammer
  548. 25:36like spams 30 issues and it shows up in
  549. 25:39your issue list you don't want to wait
  550. 25:4130 days until it you know uh gets off
  551. 25:44your list
  552. 25:46but but yeah the other approach I was I
  553. 25:49am looking into right now is like
  554. 25:51indexing the recent type IDs
  555. 25:55um by the default list although I think
  556. 25:58I'm gonna try to figure out with Jack I
  557. 26:02think Jack's working on the Consolidated
  558. 26:04list right I'm not really sure around
  559. 26:06the plans on like our requirements never
  560. 26:10going to show up in the Consolidated
  561. 26:11list or you know around these types so
  562. 26:13we know how to index our data and like
  563. 26:16do we need to filter by type or you know
  564. 26:20because right now I think we exclude two
  565. 26:21types is I think it's requirement and
  566. 26:24test case or some one one other you know
  567. 26:27type um
  568. 26:30and yeah because they have their own
  569. 26:32like list page and
  570. 26:37yeah yeah Nicholas has a question on
  571. 26:40yeah I was wondering Dimitri how does
  572. 26:42the search team uh work with the band
  573. 26:45users
  574. 26:47data so I think we just don't index band
  575. 26:51users data because you cannot really do
  576. 26:54joints in elastic search so we just
  577. 26:57don't have these documents in the first
  578. 27:00place but the user can be banned after
  579. 27:02they created the issue so what do you do
  580. 27:04then I think we remove it I will need to
  581. 27:07double check but I'm pretty sure we just
  582. 27:09drop all the associated
  583. 27:16data yeah with postgress indexes though
  584. 27:19we can't like add a you know wear Clos
  585. 27:22they're like referencing another table
  586. 27:24right so that's why it's kind of tricky
  587. 27:27we'd have to denormalize it into this
  588. 27:29table and like that
  589. 27:32so if we want to do this similar
  590. 27:44thing what happened with the idea of
  591. 27:46denormalizing
  592. 27:50it um I still it's still on the table
  593. 27:53but then it's just it takes more work
  594. 27:56it's like riskier right it's uh you need
  595. 28:00to do the syn uh invalidating the thing
  596. 28:06when the users unbanned
  597. 28:10and yeah and like the normalizing
  598. 28:14usually the normalizing usually means we
  599. 28:16all store the same data multiple times
  600. 28:19which is we we already have a problem of
  601. 28:23uh too large of a database I don't know
  602. 28:25how much data that adds and how much
  603. 28:28performance we gain but just as another
  604. 28:30perspective is like we try to like to
  605. 28:33add all of this retention stuff to
  606. 28:35remove data from the database and
  607. 28:37denormalizing usually means basically
  608. 28:40increasing the data that that we
  609. 28:43store um I was wondering if we could do
  610. 28:47an optimization by normalizing not on
  611. 28:50the issues table but on the namespace
  612. 28:53table um so hear me out so what if we
  613. 28:57have this data tension policy and after
  614. 28:59X hours we delete issues from any band
  615. 29:03user and we know that these band users
  616. 29:05created issues in these projects or
  617. 29:09groups and we therefore like once they
  618. 29:13got deleted we Mark these projects again
  619. 29:16as safe like not having any work items
  620. 29:19from band users and then we don't need
  621. 29:21to join it if we only do this on a group
  622. 29:24top level Nam space Maybe
  623. 29:28like the cre performance suffers while
  624. 29:31there's an attack from Bann
  625. 29:34users like that users we will ban but
  626. 29:37once we ban them and deleted the content
  627. 29:39we do not need to quy anymore
  628. 29:42the the data from like we don't need to
  629. 29:45do the chin
  630. 29:48anymore it's basically storing a uh has
  631. 29:52hidden issues Boolean on the on the top
  632. 29:55level container or something right there
  633. 29:59it's a a denormalization only on the top
  634. 30:02level Nam name space instead of per
  635. 30:09issue so this what also could could work
  636. 30:12with workers right like you you have a
  637. 30:16sidekick chop I mean that's a bit too
  638. 30:19much but like you go through all top
  639. 30:20level name spaces check if there is band
  640. 30:22users and if it's not you don't need to
  641. 30:25create but like you need to yeah it's a
  642. 30:28bit too much
  643. 30:30but maybe denormalization not on issues
  644. 30:32table could help because then you remove
  645. 30:35the remove it depending on if there is
  646. 30:37current data in
  647. 30:41it but this also depends on you want to
  648. 30:46delete the issue records right because
  649. 30:49that's when you flip the has hidden
  650. 30:51issues back to yeah if that's something
  651. 30:55we want to do or not maybe it's safe to
  652. 30:57do right it's all spam mostly I guess
  653. 31:00after X number of days exactly it's spam
  654. 31:04didn't get unbanned and and my thinking
  655. 31:05is the following so well gitlab orc
  656. 31:08would suffer for some time period where
  657. 31:11we until we delete the stuff all the
  658. 31:13other groups that are private anyway and
  659. 31:15do not have banned users do not need to
  660. 31:17suffer anyway and we could enable that
  661. 31:19for them immediately we would have
  662. 31:22one time migration where we go for all
  663. 31:25band users and check which namespaces
  664. 31:27have B users in there and we need to
  665. 31:29keep this up to date yes like have sorry
  666. 31:32which yeah which spaces have issues of B
  667. 31:34users in there and then once we do this
  668. 31:37and keep this up to date we can remove
  669. 31:39the query from all other namespaces
  670. 31:41except where it is and then maybe we
  671. 31:44have the data
  672. 31:48retention it seems like I was wrong
  673. 31:50about our
  674. 31:52approach we just store hidden
  675. 31:55field work so
  676. 31:58that's our solution how do you update
  677. 32:01keep it up to date uh I think just using
  678. 32:04the regular index and pipeline so if a
  679. 32:07user is marked as baned I think we just
  680. 32:11go and update all all the associated
  681. 32:14records all the associated
  682. 32:18documents it's kind of unique for
  683. 32:20elastic search because it's very
  684. 32:21efficient to filter out these hidden
  685. 32:24work items
  686. 32:31yeah so that's basically similar to the
  687. 32:33original idea of the normalizing it at
  688. 32:35the pr work item level right
  689. 32:40yeah so so like I think if we decide
  690. 32:44this is a good thing then we can split
  691. 32:46it in two parts first one is doing the
  692. 32:49denormalization which I hope we can move
  693. 32:51it to the abuse team right they can add
  694. 32:55the the uh column to the namespaces
  695. 32:58table they can mark that namespace table
  696. 33:01when they detect an abuse user and so on
  697. 33:04so like because this doesn't relate as
  698. 33:06much
  699. 33:07to plan per se it's more onto like how
  700. 33:11do we detect band users and when can we
  701. 33:14Mark um some of these containers as
  702. 33:17having or not having band users data
  703. 33:21hopefully they can take it I don't know
  704. 33:23um but I don't know if we can rely on
  705. 33:26that cuz that's that's something that we
  706. 33:27use we use depends like how you want to
  707. 33:31implement it right you could like
  708. 33:33denormalize a has
  709. 33:35hidden items field or you could make it
  710. 33:39specific like has hidden issues has
  711. 33:41hidden merch requests or something so if
  712. 33:43they have spammer request it doesn't
  713. 33:45affect the issues thing but um of course
  714. 33:48it comp uh you know you have to store
  715. 33:50more builds
  716. 33:53and I was also wondering because you
  717. 33:56mentioned this like we could even start
  718. 33:58right now with private groups right are
  719. 34:00private groups like you know susceptible
  720. 34:03to these like band us maybe they they
  721. 34:06don't actually need this CLA right
  722. 34:08likely not
  723. 34:09yeah well I guess
  724. 34:13so I one other thing but again this is
  725. 34:16again something that that probably abuse
  726. 34:18team should be concerned with is like
  727. 34:20what if someone overtakes someone else's
  728. 34:22account pay something you don't really
  729. 34:25want to delete all of his data right way
  730. 34:28you want to validate that that that user
  731. 34:30is really a bad actor and it's not
  732. 34:32something temporary and so on and so
  733. 34:34forth
  734. 34:36so just deletion itself is probably
  735. 34:38something they'll have to deal deal with
  736. 34:40and and not delete it right away but
  737. 34:42that's a different question and and
  738. 34:44similar with the with the private groups
  739. 34:46I guess um it's just like I I I would
  740. 34:49like us to focus on implementing this
  741. 34:52query where we know that a given Nam
  742. 34:55space has or doesn't have hidden items
  743. 34:59rather than implementing the whole
  744. 35:01infrastructure so to say right the whole
  745. 35:03framework of how do you mark the
  746. 35:05namespaces when the user is reported not
  747. 35:08reported detected and so on and so forth
  748. 35:10but maybe we have to do it just to not
  749. 35:12be blocked by another
  750. 35:15team I have sort of an alternative
  751. 35:18solution what if we ask the abuse team
  752. 35:21instead of this implicit hide in all
  753. 35:24issues
  754. 35:25workflow just add the like checkbox or
  755. 35:29maybe drop down like delete all issues
  756. 35:32in the Mrs in the last x amount of time
  757. 35:36so every time they bun
  758. 35:38someone uh they actually kind of add
  759. 35:41this uh checkbox so in that case
  760. 35:45Alexander what you said if that's a
  761. 35:47legit
  762. 35:48account and it has the normal history
  763. 35:52then we just delete whatever was done in
  764. 35:54the last day or
  765. 35:56two and uh the rest keeps we keep in the
  766. 36:00database and then we don't have to have
  767. 36:03this neither denormalization on every
  768. 36:06level or SQL query because there will be
  769. 36:10no data to
  770. 36:12filter but we the only con here is that
  771. 36:16we depend on the abuse team doing the
  772. 36:18right thing right like clicking it when
  773. 36:20they need to because if they miss it
  774. 36:22then the issues are left there visible
  775. 36:24correct yeah yes but uh I mean I assume
  776. 36:30they should be doing the right thing
  777. 36:32right if they want they will change
  778. 36:38it unless they have some automation
  779. 36:41right now to autoban when there are
  780. 36:42reports or something I don't know the
  781. 36:44you know workflow they have right now if
  782. 36:45they have something like that because
  783. 36:47there's the report abuse button right
  784. 36:49maybe they have an auto ban after X
  785. 36:51number of reports or something I don't
  786. 36:53know and you also need to hide the
  787. 36:55existing data um
  788. 36:58but I think our our question like how we
  789. 37:01move forward is depending on if we are
  790. 37:04allowed to delete this data or not and
  791. 37:06then if you're allow allot to lead the
  792. 37:08data the implementation will be based on
  793. 37:11the retention policy um who can make
  794. 37:15this decision if you delete band user
  795. 37:17data or like band user issues at
  796. 37:21least I can discuss it with product and
  797. 37:24pull in the uh anti-abuse Team
  798. 37:29I think we should definitely delete the
  799. 37:31data we should be coming from the
  800. 37:33position that we want to do it let's
  801. 37:35discuss how we can do it yeah can do
  802. 37:38well I think we can also run some stats
  803. 37:40from database to just see how much data
  804. 37:43we talking about as well in terms of
  805. 37:44issues and and whatnot right like there
  806. 37:47should be a count I don't think it's
  807. 37:49that much and I don't think the problem
  808. 37:52is really the data that we have but
  809. 37:55rather this join on this huge table as
  810. 37:58well so like deleting the data like
  811. 38:00having a policy on deleting the data
  812. 38:03perhaps helps us not join the table as
  813. 38:06well so that that's that's probably the
  814. 38:08the conclusion there I'll run the crew
  815. 38:10while we talk then we can see at the end
  816. 38:13of the talk yeah I think for gitlab or
  817. 38:15gitlab there were there we have like
  818. 38:1775,000 open issues and like I think when
  819. 38:20I cre like 68,000 are like not banned
  820. 38:24not hidden so I think there's like
  821. 38:26around 7,000 I don't know I'm not 100%
  822. 38:28sure in the numbers but if I remember
  823. 38:30correctly those were
  824. 38:32the because yeah our project is subject
  825. 38:35to a lot of like abuse right
  826. 38:38before a random idea what if we create
  827. 38:42maybe another table with a Json B column
  828. 38:46and move this data to this other
  829. 38:49table then maybe it's partitioned by
  830. 38:53date or something and we can just drop
  831. 38:55these the the this archive
  832. 39:01automatically which uh data they issues
  833. 39:04from the band users yeah so instead of
  834. 39:07why would why why would we want to
  835. 39:09retain them because we not sure that in
  836. 39:13the time before we validate that that's
  837. 39:17actually yeah okay basically when you
  838. 39:20unban you copy it back right yep
  839. 39:25exactly only where we is that we then
  840. 39:28need to deal with all the foring keys
  841. 39:30right
  842. 39:34um like the other implications
  843. 39:36implications of all the associations
  844. 39:38with that table that's
  845. 39:45true I mean it couldn't be it could also
  846. 39:48be like a real table not a Json B column
  847. 39:51like the real copy of issues table same
  848. 39:53columns and all that like same foreign
  849. 39:55key constraints so that they also
  850. 39:56Cascade delete to those tables but
  851. 40:00yeah well it's a duplicate database now
  852. 40:03that you need the forign keys to the
  853. 40:04tables that point to a different table
  854. 40:08now right like the the signes are now
  855. 40:11need to point to a different issues
  856. 40:14table I mean there's the other way how
  857. 40:16we could do this is like instead of the
  858. 40:18issues table we make a materialized view
  859. 40:21out of it that this doesn't include the
  860. 40:23band
  861. 40:24users but I don't want the go r
  862. 40:33cool any more ideas on the band
  863. 40:36users
  864. 40:41discussion all right I'll move to the
  865. 40:43next couple sync items so prissa she'll
  866. 40:47be starting working on the proof of
  867. 40:48concept for elastic search uh then there
  868. 40:52r no update so far and also if she'll be
  869. 40:57and the uh DB maintainer I mean she's
  870. 41:01just started
  871. 41:02the how to call train training
  872. 41:05maintainer isue um so if you have the
  873. 41:09database related qu uh Mr uh send it her
  874. 41:14way uh yeah it will give her experience
  875. 41:17and also the understanding of what we
  876. 41:19are working
  877. 41:21on and Dimitri you have a next Point
  878. 41:25sure so just want to have this design
  879. 41:28document tomorrow so I'm proposing to
  880. 41:30completely change how we handle finders
  881. 41:33so that we can use several back ends
  882. 41:35including pogress elastic search and I
  883. 41:38think even if you don't have advanced
  884. 41:40search enabled it should still help
  885. 41:42because in this design document I
  886. 41:44proposed to support offset limit pation
  887. 41:47as well as key set and scroll API
  888. 41:49pagination so I think just key set
  889. 41:52regation might make it more efficient
  890. 41:55for finders but but the main goal is to
  891. 41:58support several backends at the same
  892. 42:00time and maybe we can transparently
  893. 42:03migrate by adding support to several
  894. 42:07media options or parameters and I hope
  895. 42:11that we can try something similar with
  896. 42:14Alisa so with for this proof of concept
  897. 42:17work we might be able to introduce a
  898. 42:20finder that looks kind of similar to
  899. 42:22what I'm
  900. 42:24proposing and the main problem with ex
  901. 42:27finders that they return active record
  902. 42:30Scopes and if we use advanced search we
  903. 42:33cannot post filter the data so I'm
  904. 42:36proposing to do all filtering in the
  905. 42:38finder itself so that completely changes
  906. 42:41how we handle finders across gitlab but
  907. 42:44I think it can open a lot of really good
  908. 42:47possibilities to optimize many different
  909. 42:50use cases not only work items
  910. 43:03any
  911. 43:05thoughts yeah I was just thinking there
  912. 43:07are like some use cases where we chain
  913. 43:09some finders into some other you know as
  914. 43:11a subquery into this some other thing or
  915. 43:14like add a CL so those don't work
  916. 43:16anymore right so
  917. 43:20yeah so we kind of need to get a Buy in
  918. 43:24from from the engineering but I hope we
  919. 43:27we can achieve that because the benefits
  920. 43:29I think outweigh this one thing that we
  921. 43:33return
  922. 43:36Scopes and I hope we can introduce page
  923. 43:39token so it will be consistent
  924. 43:41pagination approach independent on the
  925. 43:45back of of the back end you're using so
  926. 43:47it will be just one parameter to get
  927. 43:50next page maybe even previous page for
  928. 43:53key set
  929. 43:54pagination so we might be able to stop
  930. 43:57using offset based imination completely
  931. 44:00because I think that's really in
  932. 44:01efficient when you go deeper maybe I
  933. 44:05don't know 20th page or
  934. 44:10something yeah I'd also like to add like
  935. 44:12this was also discussed during the tech
  936. 44:15Summit thing related to data retention
  937. 44:19because uh finders with multiple
  938. 44:21backends was like was one solution to
  939. 44:25like you know storing some data add to
  940. 44:28the object storage which is much cheaper
  941. 44:30than the database if you want like a
  942. 44:31cold storage for like very old data so
  943. 44:35could be extended to do that in the
  944. 44:40future Henrik is there any work
  945. 44:42happening around
  946. 44:44that no I don't think so it's more of
  947. 44:48like a just a
  948. 44:49discussion okay do you know who was kind
  949. 44:51of suggesting this whole
  950. 44:54thing um I don't know I think
  951. 44:57sh car was involved
  952. 45:02and the data attention te faio I
  953. 45:08think I I think generally it's a great
  954. 45:12idea to have this finders that that can
  955. 45:16have multiple
  956. 45:18backends the problem
  957. 45:21is at least
  958. 45:23from plan stage so to say I don't know
  959. 45:26how much capacity we have to work on
  960. 45:28that I think we have already a lot of
  961. 45:31technical de between
  962. 45:35um issues code base and work item code
  963. 45:39base if we start adding this that is
  964. 45:42going to be very very hard to to go for
  965. 45:45like to improve even further and and so
  966. 45:48on um like I'd love this to be something
  967. 45:51that we do I just don't know how and I
  968. 45:55think like plan is probably one of the
  969. 45:58the bigger um benefit benefiters of of
  970. 46:02this thing as well is just like I don't
  971. 46:04think we have capacity to really take it
  972. 46:08on and and do it but I don't know maybe
  973. 46:10someone thinks
  974. 46:12otherwise I think even one step in that
  975. 46:15direction is using this as a wrapper so
  976. 46:18we still have the Legacy finder under
  977. 46:21the hood but we restrict that it's no
  978. 46:23longer an active record scope that we
  979. 46:26were return I think even that can help
  980. 46:29because we can then incrementally add
  981. 46:31advanced search support on top of that
  982. 46:34maybe some only some subset of the
  983. 46:37parameters will use advanced search but
  984. 46:40it will allow us to go in that direction
  985. 46:43right now it's not really possible so
  986. 46:46I'm hope that we can enforce this that
  987. 46:49we no longer return scopes with these
  988. 46:52Advanced finders and if we just Advanced
  989. 46:54finders everywhere that's where really
  990. 46:58yeah no I I think it's it's like I said
  991. 47:00it's a good idea I think that is worth
  992. 47:03pursuing it's just like and and Vlad is
  993. 47:06here he's participating in a lot of this
  994. 47:07meeting I think like for
  995. 47:09next like up until quarter three we are
  996. 47:12so packed I don't think we can take on
  997. 47:15any of this stuff and afterwards I don't
  998. 47:18know if that that means that after
  999. 47:19quarter three we can actually now pull
  1000. 47:21in some of some of this stuff as well
  1001. 47:23it's just like right now at least that's
  1002. 47:26my feeling as an as an engineering plan
  1003. 47:28stage is like we don't have a lot of
  1004. 47:30breathing room even this work group is
  1005. 47:33kind of
  1006. 47:34already done just so that it can support
  1007. 47:37some of the this tiered items um but
  1008. 47:41yeah I I don't
  1009. 47:43know like I would love to to see this
  1010. 47:45done it's just I don't know how much
  1011. 47:47time we can allocate to to really do it
  1012. 47:51I think if there's a benefit to do this
  1013. 47:54then we should do it like there's no
  1014. 47:56question if it should be done if it's
  1015. 47:59beneficial to us and improves us there
  1016. 48:02we have like a 6040 ratio of what we
  1017. 48:04should do there are technical road maps
  1018. 48:07as Sabrina also said engineering should
  1019. 48:10push for this stuff so yes so we we we
  1020. 48:14should do just do even this working
  1021. 48:15group is a good example this was never
  1022. 48:18accounted for anywhere we just do it
  1023. 48:20because actually we need it and we have
  1024. 48:23many of these
  1025. 48:25things and I think could also find a way
  1026. 48:28to like you know make the scope a bit
  1027. 48:31smaller like we don't have to like not
  1028. 48:33return active record relation everywhere
  1029. 48:35right we could start with like the group
  1030. 48:38uh. workor items field in graphql that
  1031. 48:40uses an advaned finder the project.
  1032. 48:43workor items field also uses Advanced
  1033. 48:45finder everywhere else use the Legacy
  1034. 48:47finder for now right and just focus on
  1035. 48:50that single use case of searching um
  1036. 48:53listing items under a project or group
  1037. 48:56so
  1038. 49:08okay okay uh yeah I kind of agree to be
  1039. 49:13honest with Alexandre in general that we
  1040. 49:16are very much over capacity as a whole
  1041. 49:20of plan and it will be kind of hard to
  1042. 49:23schedule but a lot of our technical that
  1043. 49:27is around this performance and uh
  1044. 49:31reliability issues
  1045. 49:32so yeah maybe we can use it as a
  1046. 49:35step uh towards resolving this uh as
  1047. 49:40well and I kind of like What
  1048. 49:44U HRI just proposed uh yeah maybe we can
  1049. 49:48start now with this elastic search
  1050. 49:50proposal that Alisa is working Alisa is
  1051. 49:52working on and then uh St
  1052. 49:57introducing this
  1053. 49:59rappers here and there um so yeah yeah
  1054. 50:04what one thing I want to add is like
  1055. 50:07again I'm not it may feel like I'm
  1056. 50:09against it or
  1057. 50:10pushing uh pushing it off sort of thing
  1058. 50:13it's like I don't want to end up with
  1059. 50:16yet another back end among all other
  1060. 50:19ones that we have like I understand the
  1061. 50:21idea of gradually introducing it like in
  1062. 50:23Su end points and and using it and
  1063. 50:26that's probably what is going to happen
  1064. 50:27anyway it's just like like Dimitri also
  1065. 50:30said we need the buying of of all
  1066. 50:32engineering because if we want to do it
  1067. 50:34we need to put in some rocop rules in
  1068. 50:37place some stuff in place where we
  1069. 50:39actually don't have like don't have it
  1070. 50:42being used in just in some places so
  1071. 50:44then we have it again like this kind of
  1072. 50:46technical dep where someone is using
  1073. 50:48this finder someone else is using this
  1074. 50:50other finders so it's all like a even
  1075. 50:52bigger mess as as we introduce new stuff
  1076. 50:56um but yeah like we we can we can see
  1077. 50:59what we can do to start introducing it
  1078. 51:01but we probably need a bigger buying as
  1079. 51:04well um I I think from plan stage we are
  1080. 51:08all on board in doing that just don't
  1081. 51:10know about capacity and not how we can
  1082. 51:12start uh and yeah we should be very
  1083. 51:15careful about introducing yet another
  1084. 51:17back end to to do stuff and and make
  1085. 51:20things even more complex and complicated
  1086. 51:22to
  1087. 51:23maintain I think that that might be a
  1088. 51:26good opportunity to collaborate between
  1089. 51:28Global search and plan because that's
  1090. 51:30kind of our goal as well even though
  1091. 51:33that work items and merge request lists
  1092. 51:37aren't our feature but we've been
  1093. 51:39receiving a ton of feedback that it
  1094. 51:41doesn't work properly time out and every
  1095. 51:44time we had to say that this is not our
  1096. 51:47feature but this is really confusing to
  1097. 51:50team members and customers so we really
  1098. 51:53want to solve this problem
  1099. 51:56is there any way how we could evaluate
  1100. 51:58the performance difference for example
  1101. 52:00from Two cves and see like where it's
  1102. 52:03the where it makes the most sense to use
  1103. 52:06the elastic search back
  1104. 52:07end I think you can maybe perform some
  1105. 52:12searches right now on gitlab.com maybe
  1106. 52:15select gitlab org so group level search
  1107. 52:18and gitlab or gitlab as project and
  1108. 52:22compare the performance maybe in the
  1109. 52:24performance bar I think that could be a
  1110. 52:26good comparison because I think most of
  1111. 52:29the time or really frequently it times
  1112. 52:32out in the issue list and merge quest
  1113. 52:35list but it's maybe several hundred
  1114. 52:38milliseconds on the advancer side so the
  1115. 52:41performance different difference is
  1116. 52:43insane so it could be a massive
  1117. 52:47Improvement yeah that that's probably
  1118. 52:49where that JM Nicholas that you kept
  1119. 52:52advertising where you can run the the
  1120. 52:54two code paths at the same time would be
  1121. 52:57very useful in comparing that right I I
  1122. 52:59don't remember how it's called though
  1123. 53:01but scientist uh yeah scientist uh so
  1124. 53:04then you can yeah with with this
  1125. 53:09abstract
  1126. 53:10basically uh finder you can you can run
  1127. 53:13both at the same time compare and and
  1128. 53:16gather some statistics and then default
  1129. 53:18to just
  1130. 53:24one cool yeah I think let's
  1131. 53:27see what the outcome of this first
  1132. 53:28elastic search PC will be and it will
  1133. 53:32take us a couple weeks uh we kind of
  1134. 53:36over time so I wanted to quickly run
  1135. 53:38over the action item so we decided to
  1136. 53:40postpone this discussion on
  1137. 53:43the uh using the three
  1138. 53:47optimization and we'll need to bring it
  1139. 53:49up with u product and abuse team about
  1140. 53:53the BN
  1141. 53:55users any Miss I forgot no not not let
  1142. 53:59you forgot but uh while we were talking
  1143. 54:02here I checked again the city queries
  1144. 54:04that were doing any and I thought the CT
  1145. 54:08you were doing was by joining the issues
  1146. 54:10and the band users but uh actually were
  1147. 54:13join the issues and the work items and I
  1148. 54:16tried the another approach of the city
  1149. 54:18joining the issues and the uh band users
  1150. 54:21and it seems to bring a little bit of uh
  1151. 54:23Improvement in there so I just want to
  1152. 54:25share that I triy that and maybe you can
  1153. 54:28introduce use that somehow in your
  1154. 54:30efforts in
  1155. 54:39there so just to can you reiterate like
  1156. 54:43uh you found a new approach with the
  1157. 54:46CTE uh who do you want to look into it
  1158. 54:50Alexandra or
  1159. 54:56you
  1160. 55:00muted uh sorry sorry
  1161. 55:04uh I no I just want to share that I did
  1162. 55:07that I tried another approach of the
  1163. 55:10city with enrik um because he was doing
  1164. 55:13this work and maybe this new city that I
  1165. 55:16tried with the indexes that you were
  1166. 55:19planning to introduce with work items
  1167. 55:21types can be a better Improvement than
  1168. 55:24just the CT with the band users not not
  1169. 55:27sure yeah just trying new stuff here
  1170. 55:29yeah I'm I'll look into it but yeah I
  1171. 55:32think my initial findings was like if I
  1172. 55:35remove either one of these uh filters
  1173. 55:37the work item type or band user then
  1174. 55:39it's fast um so so I'm just trying to
  1175. 55:43find a way to eliminate one filter by
  1176. 55:45you know adding it to an index or
  1177. 55:47something like work ATM type it's easier
  1178. 55:49to add to an index because the column is
  1179. 55:51in
  1180. 55:52the um you know on the table right so
  1181. 55:55yeah yeah that's my point actually like
  1182. 55:57maybe you add the the index and use the
  1183. 56:00CT with the band users and maybe the two
  1184. 56:02things together combined can be a better
  1185. 56:05Improvement
  1186. 56:09yeah cool uh quick poll uh how do you
  1187. 56:14guys so find the discussions like is it
  1188. 56:18valuable is it to long
  1189. 56:20[Music]
  1190. 56:22or right amount right white time for
  1191. 56:27me I think it's valuable I don't know as
  1192. 56:30we move forward like I think next week
  1193. 56:32is still fine uh but I I kind of find it
  1194. 56:36hard to find time to work a lot on this
  1195. 56:39stuff um I think I'll I'll be fine this
  1196. 56:44week I don't know about the next one um
  1197. 56:47like I keep getting a lot of reviews and
  1198. 56:49I keep like I I keep postponing the
  1199. 56:51stuff that I really need to work on well
  1200. 56:53really this is really need to work as as
  1201. 56:55well but like some of my uh uh items
  1202. 56:59that I need to work on so for me I think
  1203. 57:02it's still fine for the next week I I
  1204. 57:04can re-evaluate for after that as well
  1205. 57:07and and let you
  1206. 57:12know by the way I think about this
  1207. 57:15Advanced uh finders we can add it as a
  1208. 57:18postponed item as well I don't know when
  1209. 57:20to postpone but just like for you Vlad
  1210. 57:22to to put it there somewhere on a on a
  1211. 57:24shelf and bring it up in like couple
  1212. 57:27weeks well potentially after the the
  1213. 57:29elastic search thing as
  1214. 57:34well okay I'll do that yeah my concern
  1215. 57:37here is that uh we spend an hour of a
  1216. 57:41lot of talented Engineers so if at any
  1217. 57:44time you guys feel like
  1218. 57:47uh maybe we should discuss something the
  1219. 57:49in or anything uh let me
  1220. 57:52know otherwise uh thank you all I think
  1221. 57:55it's a super great discussions and uh
  1222. 57:59yeah let's focus on these couple
  1223. 58:01follow-ups and see what we can get of
  1224. 58:04them yeah enjoy the rest of your day see
  1225. 58:07you

About this transcript

This page contains the full transcript of Work Items API performance WG - 2025-03-18 by GitLab Unfiltered, generated from the public captions YouTube serves with the video. The transcript has 8,740 words across 1,225 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.