Work Items API performance WG - 2025-03-11 — Transcript
Full transcript
- 0:02Hey everyone, this is uh work items API
- 0:05performance working group. Today's t uh
- 0:0811th of March and
- 0:11uh yeah um let's maybe start with
- 0:15quickly
- 0:16uh recapping what happened uh over the
- 0:20week and kind of what we discovered
- 0:24since that kind of was the main thing uh
- 0:28from the last
- 0:34meeting. and feel free to just move
- 0:36items from the bottom. Like Alexander, I
- 0:38think yours fit in well. Yeah. So, uh
- 0:43I'll I'll verbalize and then I'll I'll
- 0:45add an issue with a little bit more
- 0:46detail here. But just to give you some
- 0:50understanding like I took last time an
- 0:51action item to see if there is any um if
- 0:55we shave off some of the permission
- 0:56checks, how does that influence the
- 0:59query times in general? because like uh
- 1:02we do some of the permission filtering
- 1:05in the finders anyway and then we do
- 1:08that in the GraphQL as well. So that
- 1:10that feels kind of duplicative. Um so
- 1:13I've gave there some context. Um I I
- 1:16just increase the number of items
- 1:18returned locally. I don't have a big
- 1:20database locally by any means but just
- 1:22to exacerbate any kind of gains that I
- 1:24can see from that is like I want to
- 1:26return as many items I can I can fit. Um
- 1:29so basically increase that to 400 items
- 1:31versus I think we have 100 today in on
- 1:34production.
- 1:36Um so for that my query locally is
- 1:40running 11 seconds like the the the
- 1:42query in the in the networking is
- 1:44showing 11 seconds right uh which is
- 1:46crazy. Uh the database uh in in progress
- 1:49bar is like under 100 milliseconds 60
- 1:52milliseconds like 50 milliseconds. So
- 1:54all the time is spent in in GraphQL
- 1:57middleware or like CPU garbage
- 1:59collection all that stuff right. Um so
- 2:03in terms of uh skipping the uh the u
- 2:05permissions we have that that helper
- 2:07there skip type authorization where
- 2:10because you load the items and then each
- 2:12type checks basically every object
- 2:14instance the uh type again that was
- 2:16shaving off around 10 to 15% like one to
- 2:20one and a half second off of that um 11
- 2:23seconds. So there is some gain but like
- 2:26not exceedingly much. And then the next
- 2:28radical thing I was like okay what if I
- 2:30remove um widgets altogether like I will
- 2:34only load whatever the base types are
- 2:37there on on the on the collection and
- 2:39that reduced it to like around 50%.
- 2:42Right? So um a lot of the time is spent
- 2:44within the widgets themselves. Like the
- 2:47next thing was like what if I lo just
- 2:49the empty widgets and and not like all
- 2:52of the data just the basically the
- 2:55interface right uh so all I left is the
- 2:58underscore type which is the the
- 3:00graphql's way of of saying this is the
- 3:02type of the object. Um and that was not
- 3:07reducing like the same 50%. And I was
- 3:09expecting that like there should be
- 3:10close to no overhead where instead it
- 3:13was like more of like it was around 8 to
- 3:179 seconds returning like pretty
- 3:20constantly. So that kind of tells us
- 3:23that there is a lot of overhead coming
- 3:24from the GraphQL itself or I don't know
- 3:27if we have some objects that we
- 3:29initialize within the GraphQL or that's
- 3:31that's just the gem how it works like we
- 3:34need more
- 3:35um to dive deeper into that or just I
- 3:39don't know maybe maybe there's a case to
- 3:41be made to move off GraphQL for for that
- 3:45um completely. I like I I don't have a a
- 3:47good answer. It's just like what I've
- 3:49what I found so
- 3:51far. And I'll again I'll I'll add some
- 3:54of the uh flame graphs and whatnot what
- 3:56I have uh into a more detailed issue. I
- 3:59just didn't have the time to to do so
- 4:00yet. I'll formalize it in in a bit
- 4:03better way.
- 4:09Um should I move to mine?
- 4:12And yeah, if you if you don't have any
- 4:14questions or like maybe some
- 4:16clarifications, then we we can move on
- 4:17to the next one. Yeah.
- 4:21Um, so on my side, I
- 4:24um so I I added some information about
- 4:27removing widgets from the main query of
- 4:30listing work items. So um in that case
- 4:35it confirms that uh linked items is one
- 4:39affecting the query the most. Uh second
- 4:42it would be labels but mainly in the
- 4:45group query uh when we include uh
- 4:49projects I tested that locally and that
- 4:51was the biggest difference in in the
- 4:54information you can see there we go from
- 4:56timing out in the group query to
- 4:59actually returning. Um so and there's
- 5:05another one I added this point later so
- 5:07maybe I can extend that later. Um and
- 5:11then we discussed the children list as
- 5:13well. That that was quite slow when we
- 5:16included um widgets in the hierarchy
- 5:21widget. But um so in that case I confirm
- 5:25again that the slowest queries were for
- 5:29roll up. Um so we have weight, health
- 5:33status and the count of children. Um the
- 5:37question about this is if we want to
- 5:40include in the scope of this group
- 5:43working on other queries that's not the
- 5:45main query because I was a little bit
- 5:47confused about that. I saw some comment
- 5:49that said that if if it's not if it's
- 5:53for example single single work items
- 5:55having performance issues that's
- 5:57something we're not going to deal in
- 5:59this uh group. So, h I'm not sure if you
- 6:03want to include this uh or or do more
- 6:07research about it.
- 6:11That's a good question. Uh from what I
- 6:15gather right now, the most blocking uh
- 6:19problems for us are the lists, right? Uh
- 6:24kind of blocking all these like tier
- 6:26deliverables for assets, JLK, but
- 6:29whatever. And
- 6:31uh
- 6:35how if we looking into the single item
- 6:40uh is there
- 6:42any like what what is the benefit of
- 6:46looking at it right now like optimizing
- 6:48making it better obviously but uh uh
- 6:52yes pushing us in in
- 6:55in a specific case of children we've
- 6:59been looking at it from the
- 7:02um error budgets. This is affecting the
- 7:05error budgets. So we already had some
- 7:08focus on it and we were trying to
- 7:10improve a lot of it is is is very
- 7:13unperformant like moving the children.
- 7:16Uh so I think like even if we don't pay
- 7:19attention to it during this group it
- 7:21will still be handed for other reasons.
- 7:24uh it would be mostly if uh if this was
- 7:27affecting using um other features that's
- 7:31not listing uh this might even uh be a
- 7:35problem when we deal with boards but
- 7:38that's not yet so I think it would be
- 7:41okay to leave it out and focus on
- 7:43listing work items
- 7:45um I'm not aware of any place where we
- 7:49list work items now and we include the
- 7:51hierarchy widget it
- 7:55I think it will be fine to include it
- 7:57but as a kind of lower priority goal
- 8:00that like mostly we are focusing right
- 8:02now on the
- 8:04uh listing of items but uh we can also
- 8:08discuss and like it may also be related
- 8:11right to some of the other work that we
- 8:12do anyway so
- 8:16just wanted to clarify so the children
- 8:19thing like the rollups they're mainly
- 8:21for the hierarchy key list, right? Like
- 8:23the widget and not for the listing page
- 8:25or do we have plans to show it there or
- 8:28like um I I think um um I'm not sure
- 8:34what we used to include. Uh I know that
- 8:37in boards we will include the number of
- 8:39children of each epic. So we used to use
- 8:42the count. I think we also include the
- 8:45progress. So the the weight uh roll up
- 8:50but in the
- 8:51listing no what I remember is that we
- 8:54used to have the blocking and blocked
- 8:56items. So the linked uh widget even if
- 8:59we remove it now we probably have to add
- 9:01it later. Um but yeah for roll apps I I
- 9:05don't I don't think there's any use for
- 9:07it but maybe someone from front end
- 9:09would know better. I I don't remember
- 9:11how the parity of the other lists look.
- 9:18Yeah, I just remembered that we added
- 9:20that for the hierarchy. So, I was just
- 9:21wondering. But I think one of the good
- 9:23things about this uh children thing
- 9:25though is like we have a way forward
- 9:27like we have the epic for like caching
- 9:29this in the DB and like uh yeah, it's
- 9:32just um it's just it just takes a lot of
- 9:35work. So it's not probably not like a
- 9:38working group thing because working
- 9:39group for me I think is more of like
- 9:41exploring the solution and this is more
- 9:42of like implementing the thing and it's
- 9:44more like planning who would do it right
- 9:48or something allocating like engineer
- 9:50ours for that but
- 9:53yeah I'm not sure if if we are going to
- 9:56touch anything about mutations
- 9:58performance we haven't discussed that at
- 10:00all but that is also another problems in
- 10:04children the the update mutation for
- 10:07work item can be very slow when you are
- 10:12uh depending on the widget. But yeah,
- 10:15that that might be just outside the
- 10:17scope as well.
- 10:32Uh Henrik, do you want to verbalize the
- 10:35next point? Yeah. So I just did some
- 10:38experiments on our the main query that
- 10:40we do
- 10:42like I actually just didn't um here I
- 10:45could share my screen
- 10:53maybe. Yeah. Yeah. So this is like I
- 10:55started with a project level query and
- 10:57this is
- 10:57uh how our query looks like right now.
- 11:00We filter by work item types because we
- 11:05um this is the query that Nicholas was
- 11:08measuring, right? This is the same query
- 11:09the graphql query makes. And the main
- 11:12filter here is like this one
- 11:16the set of types that we want to show on
- 11:19the issue list today. We exclude
- 11:22requirements and epics and test cases I
- 11:26think or something. But um and the other
- 11:28one the band users one was what like u
- 11:30Nicholas also mentioned the last time.
- 11:34So we look at
- 11:36the plan
- 11:39um it's not the slowest but it's also
- 11:41not the fastest.
- 11:44uh we could see that it
- 11:46uh queries by record type, project ID,
- 11:50state and but the main problem here is
- 11:52that it fetches all 75,000 open issues
- 11:56of this project and this takes most of
- 11:59the
- 12:00time. After getting the 75,000, it pairs
- 12:04it with the band users. You know, this
- 12:07is a 75,000 loop just to check each one
- 12:09if they're part of the band users. and
- 12:11then it sorts the 75,000. So it could
- 12:14get the first 100 created at. So that's
- 12:18where
- 12:19the that's the sort of problem we deal
- 12:21with with a group level query. So it's
- 12:24similar. So it's like the main issue
- 12:26here is like fetching everything. So I
- 12:28did some tests here.
- 12:31Um first I tried removing the work item
- 12:33type filter and I was surprised that uh
- 12:36this actually much faster. The buffers
- 12:38were much smaller. What happened here
- 12:41was
- 12:42that it scanned this index with a sorted
- 12:45list already. So it didn't have to fetch
- 12:48all
- 12:4875,000.
- 12:49[Music]
- 12:54Um fetched it in parallel and then still
- 12:57the same thing matched it with the band
- 12:59users but since Postgress is working
- 13:02with a sorted list already I think he's
- 13:04just getting the first you know here
- 13:07it's like 3 * 47. is like 130 something
- 13:11until it gets 100 uh that it needs.
- 13:14That's why it's much
- 13:16faster. Removing the band user filter is
- 13:19what uh Nicholas mentioned before like
- 13:23um also mentioned uh similar thing
- 13:27happens here. So an index makes you
- 13:30fetch the 100 instead of the 75,000 and
- 13:33it's much faster. So that kind of like
- 13:37frames the problem right the main
- 13:39problem here is like fetching we have to
- 13:41frame the query in a way where we don't
- 13:43fetch all the items uh from the DV and
- 13:47here's another experiment also because I
- 13:49noticed that we were filtering
- 13:52by this uh base type thing right joining
- 13:55to work item types and uh base type in
- 13:59this array we don't actually need to do
- 14:01this because
- 14:05um we know the fixed ids of each type.
- 14:09Uh we could just do issues.work item
- 14:12type ID is equal to you know these ids.
- 14:15It could be a subquery. In this case I
- 14:17just put in all the uh ids and Mario
- 14:21also worked on like this now fixed one
- 14:24to nine today. So it's kind of like
- 14:26easier. Um, in this case it still
- 14:30fetches all
- 14:32um 75,000 or in this case I think 67 I
- 14:35don't know it's like fetching and then
- 14:38pairing with a band right away or
- 14:40something but then it does it in
- 14:42parallel and based on some tests it's
- 14:46like the execution time
- 14:48is a
- 14:52um I wouldn't say like significantly
- 14:55faster than the original query. So I'm
- 14:57still exploring this you know if it's
- 14:58this is worth doing and how um I'm
- 15:01testing this with queries with like uh
- 15:03you know label filters and all that and
- 15:05maybe I haven't gone through the group
- 15:07level. So that's one area I'm looking to
- 15:11explore in other parts of it. Yeah.
- 15:14Yeah. Just one one uh question. This
- 15:16looks like a simplified query of oh this
- 15:19is the project level on one specific
- 15:21project only right.
- 15:29What? Yeah, you were cutting out. What
- 15:31was that? Yeah, I'm not sure what's
- 15:33going on because I should be having the
- 15:35good internet. Um, so that was the query
- 15:39for just one one project.
- 15:43Uh, that's not even like that's not
- 15:45coming for that's not even the issues
- 15:48query on the group level, right? where
- 15:50we filter where we only query project
- 15:53level work items. Yeah, this is the
- 15:55project level query for now. And yeah, I
- 15:57forgot to mention uh one one reason the
- 16:00project level is much simpler than the
- 16:02group level is that we do the provisions
- 16:05check for project level queries outside
- 16:07of this query, right? Because there's
- 16:08only one project, you just do like can
- 16:10read issue like project and once you can
- 16:13read it, then this is the query. for a
- 16:15group level it's like query all the
- 16:18projects with under this group or all
- 16:21the name spaces under this group plus
- 16:23with the clauses there for the
- 16:25permissions check and all that so um
- 16:28yeah so I'm starting with this and
- 16:30seeing like how it works with other
- 16:33queries too like the other variants like
- 16:35the group level
- 16:37um but like I said like the DB part
- 16:41right now with the project level isn't
- 16:43um the biggest chunk like the I
- 16:46mentioned this in another point like uh
- 16:48the lowest hanging fruits. There are
- 16:50bigger gains to be had with the N plus
- 16:52ones and all that.
- 16:55So I'm not sure if it's worth like
- 16:58pursuing really these like tiny gains
- 17:00here, but yeah, this is just something
- 17:02interesting I looked into this week.
- 17:05Yeah. Yeah, that that makes sense. Like
- 17:06I wonder if if there are more gains when
- 17:09we go into group level uh queries where
- 17:13where we can do more like we can
- 17:16optimize more of that
- 17:20stuff. But yeah that that's interesting.
- 17:24I I also feel like we we should be able
- 17:27to remove those uh type filters when we
- 17:31because we are talking about the unified
- 17:33work item list right. So at that point
- 17:35like we should be showing everything and
- 17:38then when we want to render specific
- 17:41stuff that's when we want like we can
- 17:43decide is it a work item or is it a
- 17:44legacy um visualization of that if it's
- 17:48a test case or I don't know what but but
- 17:50we can still I think put it all under
- 17:53one query but then you'll have filters
- 17:56by type anyway so we'll have to deal
- 17:58with that. Yeah, users could filter by
- 18:00type anyway, right? Definitely. But
- 18:02that's also that's also a very good
- 18:03point. That's one of my questions also,
- 18:05right? Like regarding our goal right
- 18:08now,
- 18:09um what's the
- 18:12query? It's the same question. What the
- 18:14what's the query we want to optimize,
- 18:16right? Is it the future query where we
- 18:18have an consolidated list or the query
- 18:21we do now with these like restrictions,
- 18:23right?
- 18:26um like work item list with epics only
- 18:29to replace the epics list. There's this
- 18:32uh issue list today that's filtered by
- 18:35certain types so that it matches the old
- 18:36behavior or do we optimize for the you
- 18:39know future consolidated list for
- 18:42everything?
- 18:49I I have the impression that there's
- 18:51some types that they're always going to
- 18:52be filtered out like requirements
- 18:54because they live in a different um
- 18:58menu. So I think the consolidated list
- 19:00is more for issuables or well in this
- 19:03case uh tasks, issues, epics, but I'm
- 19:06not sure if they will include um even
- 19:09maybe objectives that would have a
- 19:11different
- 19:12menu. So we might have to keep filtering
- 19:15this out.
- 19:17Yeah, it depends on the product goals,
- 19:19right? Because if we see that the long
- 19:21term these types are always going to be
- 19:24like out of the main list of types, then
- 19:28a an index with targeting those specific
- 19:31types uh sorted by graded at you know
- 19:33just for the default view would help.
- 19:37But yeah should be like
- 19:39a if we know the certain types you want
- 19:42to list and how you know how far in the
- 19:44future we want to like integrate
- 19:46requirements here or ne would it be
- 19:48never or you know what's the answer to
- 19:50that
- 19:52question I think uh yeah we really need
- 19:55both like right now we need to address
- 19:57the problem with current UI and with
- 20:00just migrating to the work items API so
- 20:04maybe what you suggested was just
- 20:06creating specific indexes for current
- 20:08queries will work and maybe we can have
- 20:11them in parallel uh kind of indexes for
- 20:14new queries and uh the current ones at
- 20:17the moment kind of my hunch is I want to
- 20:20focus on what we have now and what's
- 20:23blocking for the closest road map items
- 20:26like uh epics lists on u projects and
- 20:32issues lists on groups etc but I may be
- 20:37Yeah, another question is probably and
- 20:40that will kind of transition us to the
- 20:42yes thing is is there or can we find
- 20:47some BS and say if you have more than
- 20:49let's say 10,000 work items in general
- 20:53then you're better served off by quering
- 20:56it through advanced search which is
- 20:58elastic search. So then you need to do a
- 21:00little bit more um infrastructure
- 21:03maintenance and move on to that right.
- 21:04So cuz like this queries may be serving
- 21:08just fine with all the filters if you
- 21:10have a limited number of work items and
- 21:12then we can do that in PG and all
- 21:14whatnot. But then if you are over this
- 21:16limit, you'll you'll see the sufferings
- 21:18with the performance. You'll see all of
- 21:20these issues and then you're better
- 21:22served if you'll go and install and
- 21:24index your stuff in elastic search. And
- 21:26then that's where we can move on to the
- 21:28to the separate code path where we
- 21:30support the bigger stuff and searching
- 21:33um with all these types of filters and
- 21:35whatnot in in elastic search. uh that
- 21:38that makes the assumption that elastic
- 21:41search just uh magically solves it all
- 21:43for us like in a very performant way.
- 21:45But that's that's yet to be
- 21:47um validated so to say. But that's
- 21:51that's where I think we can transition
- 21:53to to the to this elastic search unless
- 21:56we have anything else on on the on the
- 21:58queries. I actually wanted to just ask
- 22:02what's your hunch like after all doing
- 22:04this all this exploration with uh uh
- 22:08databases and
- 22:09graphql what I see what you Alexandra
- 22:12just said is that most of the problem is
- 22:15coming from the graphql and widgets what
- 22:18is you can see in the Nicholas's
- 22:21uh charts is that yeah like database is
- 22:25also like 40% of the time uh in
- 22:28production
- 22:29Um so my question
- 22:31is is the current API the old issues API
- 22:36and epics are affected to the same
- 22:39degree or once we switch to the work
- 22:42items API everything suddenly becomes
- 22:45twice as slow as the current
- 22:50yeah the the
- 22:51uh I think I didn't look specifically at
- 22:55the work items API I know that we have
- 22:57this issue we had this issue with the uh
- 23:00nodes API where in REST it was much much
- 23:03much faster than through GraphQL. So I
- 23:07would assume we'll we'll see the same
- 23:09problem uh with the work items where
- 23:11like if you're doing it through rest
- 23:13it's faster but again the assumption at
- 23:16the time was that in rest you do
- 23:19basically or most of the permissions and
- 23:22all that checks um once and then you
- 23:25just present all of the data that you've
- 23:27validated as being accessible. uh
- 23:30whereas in GraphQL you do it a lot of
- 23:32times through all of these types that
- 23:34you render in in the tree kind of
- 23:36structure, right? As you go deeper into
- 23:38a node, you you kind of check it again
- 23:40and again. Um that was that but but it
- 23:43seems that
- 23:45uh there is more overhead than just the
- 23:47the permission checks. There is uh
- 23:49overhead and just building these nodes
- 23:51in in GraphQL itself. So I I think we'll
- 23:54we'll see more slowness as we as we move
- 23:58to the work items. um for the database I
- 24:01don't think that's that simple because
- 24:05um there is overhead in the database as
- 24:08we move towards the group level like as
- 24:10we move towards group level and also
- 24:13group level work items there is more
- 24:16database overhead that that may come
- 24:18into into play and it will not make
- 24:22GraphQL as look as bad if if that makes
- 24:25sense right like you it will take quite
- 24:28a bit of time like I' I've seen on
- 24:30production queries that take like 4
- 24:32seconds or something like that to return
- 24:34from the database. Right? So now if you
- 24:36compare that to the 10-second return or
- 24:40whatever from GraphQL then then it
- 24:42doesn't look as bad but but it's still
- 24:44there is there is a GraphQL overhead for
- 24:47sure.
- 24:49Yeah. Yeah, on the DB side, I think so I
- 24:54on
- 24:55the old issues like endpoints or APIs or
- 24:59even the GraphQL endpoints, they're I
- 25:01think more optimized like we just use
- 25:04them longer. We fix the NN plus ones.
- 25:06So, you know, if we switch, we'll
- 25:09probably find more N plus ones we didn't
- 25:10account for. And but in terms of the
- 25:13query, they will be pretty much similar
- 25:15if it's at the project level. at the
- 25:17group level is where it complicates
- 25:19things.
- 25:20Um especially if we want to do the
- 25:23consolidated thing where group and
- 25:25project level are
- 25:28um returned in one query. That's why we
- 25:32temporarily added actually added
- 25:34a argument there for the work items
- 25:37query where you could say exclude
- 25:39projects true so that you could only
- 25:42return group level items. We in some of
- 25:46our tests earlier we we found that this
- 25:49was much faster for now and this
- 25:51unblocks the work to switch epics list
- 25:53into the work item list. But if we want
- 25:56a consolidated list or the you know the
- 25:58work Alexander's doing on the project
- 26:00level epics and the group level uh
- 26:02issues thing and we want them listed in
- 26:04one list then we'd have to solve that
- 26:06problem still.
- 26:08Yeah. Yeah. And for for the group level
- 26:10where we exclude projects, that's only
- 26:12faster because we have very very few
- 26:15group level work items, right? Like we
- 26:16have orders of magnitude less epics than
- 26:20uh than issues. So it just has to like
- 26:24it it efficiently filters by the
- 26:26whatever group there is or name space
- 26:28and and returns it a bit
- 26:30faster. Yeah.
- 26:35So yeah, let let's move on to the um the
- 26:38topic that I'm kind of excited about
- 26:40with the elastic search. Um and we've
- 26:43got Dimitri here standing for like 30
- 26:46minutes. So I I um I've put it on our
- 26:51topic too. Um I do have some questions
- 26:55but I think the more generic question is
- 26:57like can we
- 27:00um rely on as being much faster than
- 27:03posgress in a lot of these bigger
- 27:08uh data queries sort of to say right
- 27:10like where where you need to also search
- 27:13the depth of the of the hierarchy tree
- 27:15and with a lot of these items um
- 27:19obviously there is there are questions
- 27:20in terms of can we
- 27:23um start using it all over the place or
- 27:27is it like the what are the restrictions
- 27:30like paid tier versus not paid tier and
- 27:32and so on and so forth like I I think
- 27:34there is still a bunch of stuff missing
- 27:37from ES like I I didn't see filtering by
- 27:39milestone I don't think we index
- 27:41milestone data and and all that stuff
- 27:44and then yeah there there's a lot of
- 27:46these questions so the first one is like
- 27:48is it is it a paid tier or is it
- 27:50available also in force
- 27:53So answer that it's paid and registered.
- 27:56So but we have I think several issues to
- 27:58actually make it available in foss.
- 28:02What does it what does register t means?
- 28:05I think you can use it for free
- 28:07essentially if you agree to send some
- 28:10telemetry data if I remember correctly.
- 28:12Okay. Okay. Okay. Okay. Okay. I didn't
- 28:14know that.
- 28:23Uh yeah. So I think we can skip all of
- 28:26those questions. We've got the answers
- 28:28for that. is like the the bigger
- 28:31um question I guess is like if you were
- 28:35to Dimmitri if you were to like come to
- 28:38plan team now and say okay we wanted to
- 28:40use the elastic search like what would
- 28:42be your say okay I need to understand
- 28:45these uh restrictions in order to tell
- 28:48you if it's a good fit or or not so good
- 28:52fit like do you have any concerns in
- 28:54terms of like us starting and using that
- 28:56like what what questions should we asks
- 28:58ask ourselves right so what I'm trying
- 29:00to uncover here is like what are some of
- 29:02the unknowns that we need to look into
- 29:04and and investigate um do our kind of
- 29:07part of the work right like you need to
- 29:09look into this and this and that cuz
- 29:10like it probably will perform okay here
- 29:13but but maybe not you need to
- 29:14investigate so in my mind it will be
- 29:17much much more performant given how much
- 29:20we we our team struggled with posgress
- 29:23especially with group level searches I
- 29:26think that's the
- 29:27That's really important for this working
- 29:30group. It's to search something in a
- 29:32name space and I think posgress just
- 29:35doesn't really work for that use case.
- 29:39My main not even concerned I think the
- 29:42main challenge is
- 29:44finders. If we want to support both
- 29:46posgress and elastic search we'll need
- 29:48to change how we how we operate in
- 29:52regards to finders. So I've even opened
- 29:55a design document recently
- 29:58uh that we need to not return advance uh
- 30:02sorry active record scopes we'll need to
- 30:04return actual pageentated results if you
- 30:07want to support both
- 30:08backends. So that's the main challenge
- 30:11in my mind. If you want to migrate
- 30:13towards that new world when if you have
- 30:17advanced search you're using advanced
- 30:18search if not you're still using
- 30:20posgress we need these new
- 30:23finders because our team but that that
- 30:26would mean if we want it to be like
- 30:28transparent in in the sense that user
- 30:30doesn't have to know which back end it's
- 30:32using right but if they have to make the
- 30:35decision explicit then you can have
- 30:38different fighters for the different use
- 30:40cases like Right. Is is my understanding
- 30:43correct there?
- 30:44Uh potentially, but I I was hoping that
- 30:48we can make it more transparently maybe.
- 30:51Yeah. Yeah. I mean there are there there
- 30:52are obviously pluses for that because
- 30:54you can have one front end dealing with
- 30:56with the two backends at the same time.
- 30:59Um it it really comes down to what's the
- 31:03cost, right? Can we implement such
- 31:04finders easier or is it easier to to
- 31:07have two front ends basically dealing
- 31:09one will deal with the with the active
- 31:11record scope another one will deal with
- 31:13the just an array uh but yeah I just I'm
- 31:17just trying to understand what what's
- 31:19your what's your vision in that and that
- 31:21that's like we want that finders if we
- 31:23want one front end and then the back end
- 31:25is basically transparently moving
- 31:26between oh I'm actually will be much
- 31:30more performant to use elastic search so
- 31:32the decision is not on the user but it's
- 31:34rather on on our own back end. Okay. I I
- 31:37was thinking we will have maybe a set of
- 31:38filters advanced search finder support.
- 31:42Maybe we don't have milestones yet then
- 31:45we will fall back to using posgress and
- 31:47then we can migrate all these fields to
- 31:50the advanced search finder kind of and
- 31:53if all of the filters are supported we
- 31:56just use advanced search. I think it
- 31:58will always be more performant than
- 32:00posgress
- 32:02but we don't have yet any examples in in
- 32:05gitlab that uses both and does this
- 32:08fallback right like there is nothing
- 32:09that does that today so slash search
- 32:12page does that if advanced search is
- 32:15disabled we use posgress so we already
- 32:18kind of do that but yeah but the
- 32:20decision is on the the decision is
- 32:22coming from the front end right it's not
- 32:25it's not a decision that's on on the
- 32:28back end itself is like on on the back
- 32:31end. Yeah. Okay.
- 32:34If if you don't have advanced search
- 32:36enabled, we just use posgress. We call
- 32:38it basic search. It's much much slower,
- 32:42but it's available.
- 32:44Yeah. But does it like go through the
- 32:46same like what do you call like a finder
- 32:49code or like it's just a different HAML,
- 32:51different finder, different everything
- 32:53like So it's the same HAML file. We we
- 32:57use search services and these have kind
- 33:02of this decision tree whether or not
- 33:04elastic search is available whether or
- 33:06not this specific thing is indexed in
- 33:08advanced search and then we decide which
- 33:12back end we should use but it's very
- 33:15search specific so that's why I'm
- 33:16talking about finders maybe you can
- 33:19utilize finders to use it more broadly
- 33:22in GitLab
- 33:33And the link you posted is the wild card
- 33:35s. So I'm assuming like it could also
- 33:39eventually replace the list view like
- 33:41even without filters, right? Like
- 33:44or yep I believe so. So we have an old
- 33:49epic specifically about that about using
- 33:52advanced search with merge request lists
- 33:54and issue lists but we haven't
- 33:58prioritized it. I think this working
- 34:00group might be a really good opportunity
- 34:02for us to to actually pursue
- 34:08that. My only concern is I it's not
- 34:12really a big concern but like if you
- 34:14look at the issue list right now there
- 34:16are so many
- 34:17like edge cases like sorting by
- 34:22um priority or something. So should we
- 34:24index all the label priorities and all
- 34:26that and yes and you know to sort
- 34:28through that or like you know those are
- 34:30not very commonly used but if you want
- 34:32like full parity between both then we'd
- 34:34have to have to handle these you know
- 34:37edge uh cases that we need to support um
- 34:41so elastic in
- 34:43indexes all the fields so it's just a
- 34:46question to add these fields to elastic
- 34:49search to our indices we have advanced
- 34:52search migration framework which makes
- 34:54it really easy. So you add a field to
- 34:56back fill it and you can use it as soon
- 34:59as the back fill is
- 35:02completed. Yeah. But this like for
- 35:05example a complex search is like uh like
- 35:08I said priority is
- 35:10like depends on the issues labels and
- 35:13the labels priority set somewhere else
- 35:15right in another table. So if those
- 35:18priorities change, this issue list
- 35:19should change. It should like trigger a
- 35:22reindex or something or should we just
- 35:24those kinds of things? Yeah, I think we
- 35:27have something similar when let's say
- 35:29project permissions change, we reindex
- 35:33all associated documents. So I think
- 35:35it's pretty similar to that. We'll need
- 35:37to
- 35:38denormalize some fields to elastic
- 35:41search to this index because we can't
- 35:43really do joins in elastic search.
- 35:50The other thing I remember from the last
- 35:52conversation I had with like ES thing
- 35:54before was uh the cost. I think the ES
- 35:58team mentioned that before that we were
- 36:01not ready to
- 36:03handle you know much more ES queries at
- 36:06that time. I don't know the current
- 36:07situation though. I think it's much
- 36:10better now. So more than 90% of our
- 36:13storage is code and we have zuk now
- 36:17exact code search which will kind of
- 36:19replace advanced search for that and I
- 36:22think other document types like work
- 36:25items are ne negligible compared to
- 36:28code. So have a huge huge cluster with
- 36:30billions of documents in it at the
- 36:33moment.
- 36:36Uh Duke is there anywhere where we can
- 36:38learn about like performance of
- 36:40reindexing all this stuff like going
- 36:42back to what what Hinrich just mentioned
- 36:45in like you've changed the um priority
- 36:49so you need to to to change those
- 36:50indexes to basically reindex a bunch of
- 36:52documents and that will come also true
- 36:56because we have this work like custom
- 36:57work item types so your type is
- 37:00currently called issue but then it
- 37:01becomes being
- 37:03colic ally need to add that data to the
- 37:06elastic search now um because it it has
- 37:09been saved to the database right you
- 37:10need to do this whole migration my my
- 37:12question is like how much data can we
- 37:14process in a unit of time or like some
- 37:16kind of performance understanding in
- 37:18that how fast that can be available in
- 37:21searches right because like you've
- 37:22changed it and now you be you need to be
- 37:24able to work with your boards and and
- 37:26and everything else um at the same time
- 37:29that's something that we still need to
- 37:31solve for posgress as well and we we're
- 37:34thinking thing about this decorator
- 37:35pattern where where it uh propagates the
- 37:37change like you did not yet change the
- 37:40type itself but you can see how how it
- 37:42the change is being applied so maybe we
- 37:44can do some magic in that context but
- 37:46maybe we can just reindex it at the same
- 37:49time and and return it I think it should
- 37:52be fine right now the delay is up to a
- 37:54minute but it's easily we can easily
- 37:56change that to be several seconds so if
- 38:00we don't have oh sorry so you can you
- 38:02can index like what like a thousand
- 38:04issues per minute or do you have any
- 38:07kind of understanding of how obviously
- 38:09it depends on how much data that or
- 38:11maybe in megabytes we can say you can
- 38:13index like 1 kilobyte per second or
- 38:15something do we have any kind of
- 38:17measures measurements in that sense I
- 38:19think we have saved somewhere but it was
- 38:22really really high indexing for I think
- 38:25a day or two and then we processed the
- 38:28entire backlog maybe half a million of
- 38:30documents or something maybe in 10
- 38:33minutes I don't remember specifically
- 38:35but it was really good and we have
- 38:37sharding so we have 16 shards for
- 38:40indexing so if if we see that the
- 38:43current throughput is not enough we can
- 38:45just add more shards but we've never had
- 38:48problems with indexing throughput uh and
- 38:51one more question would uh plan related
- 38:54stuff be on a kind of separate cluster
- 38:57or is it all within the same so what I'm
- 38:59trying to say is like if um well code is
- 39:03probably se is going to be separated in
- 39:04zooked. But if some other part of the
- 39:06search fails, uh will plan be affected
- 39:09or can we make it so that like wikis
- 39:12cannot be searched but but uh issues can
- 39:15be searched right like I think we need a
- 39:18much higher availability for issues than
- 39:21something else in searches because it
- 39:23affects like boards, lists, all of that
- 39:26all of that workflow. So my question is
- 39:28can we have it separate or it has to
- 39:30like the the current architecture is
- 39:32everything has to leave it in the same
- 39:34uh same infra. So that's possible
- 39:37potentially possible but right now it's
- 39:40a single cluster with multiple nodes. We
- 39:44have work items index. So if something
- 39:47goes wrong with the cluster it would it
- 39:50would potentially affect work items as
- 39:52well. But we could discuss maybe some
- 39:55mitigation strategies if we want. Also,
- 39:58we could potentially fall back to
- 40:00posgress if something goes wrong so that
- 40:03we can at least still maintain the
- 40:05functionality even though it won't be as
- 40:07performant.
- 40:09Yeah. The the worry is that we will not
- 40:11be able to maintain like same kind of UI
- 40:14and features like the same boards and
- 40:16all that if with the two back ends,
- 40:18right? you you I can see a world where
- 40:20you can have a simplified UI and
- 40:23features versus if you have elastic
- 40:26search you have a lot more stuff going
- 40:28on there and when that falls it will
- 40:30just not serve the same boards right
- 40:32that board will have different
- 40:33configurations and and all different
- 40:36filters different different everything
- 40:38so it'll probably not be as easy to to
- 40:41to be as transparent because I don't
- 40:43think we can support everything in both
- 40:45places but yeah anyway um one other
- 40:48question that I have is about custom
- 40:50fields and I'm not sure if that's
- 40:52something if that will be a concern at
- 40:54all for elastic search in in that it's
- 40:57not exactly dynamic. We kind of know the
- 41:02name of the field and we we know the
- 41:04type as well because we wanted to know
- 41:06like the type of the field in the
- 41:07database anyway. But I don't know if
- 41:09that raises any concerns to you as well
- 41:11or I think you've answered but I didn't
- 41:14catch it.
- 41:16Yeah. So we could potentially add a
- 41:18nested field, nested object field, but I
- 41:23think we we might want to discuss uh to
- 41:26sync on that se separately to see the
- 41:30maybe requirements for custom fields
- 41:33whether or not we want to introduce the
- 41:35these
- 41:36dynamically or we know all the fields
- 41:39and we can add them to our index in
- 41:42advance.
- 41:44No, we we don't know the fields. They
- 41:46will be defined by the customers. We
- 41:47know that we have a limited set of
- 41:49fields like we we only can have a 100
- 41:52custom fields max but
- 41:54then those will be added dynamically by
- 41:57the customers like they they can have
- 41:59two or they can have 20. We don't we
- 42:02cannot know at least that's how it's
- 42:04designed today. Maybe we need to revisit
- 42:06that but yeah I see. Yeah. and and we
- 42:10need all the functionalities on an
- 42:12ordinary field potentially. It's not
- 42:14going to come all at once, but we would
- 42:16want to be able to filter, to sort by
- 42:18them, to group by them, and all all all
- 42:20that stuff.
- 42:23Yeah. Uh we have quite a bit of the
- 42:26agenda ahead of us. Can we maybe move to
- 42:28the next point?
- 42:31Thank you. Uh the next one is I think
- 42:35mostly it's covered but like um I
- 42:37mentioned like it's not really the DB
- 42:39that's the biggest chunk right now is
- 42:41that the linked items N plus1 I think
- 42:44it's assigned to Eugenia so she's
- 42:45probably working on that already and
- 42:47like there's another N plus one on the
- 42:50um redacted user which is like uh more
- 42:55of a problem for our project because we
- 42:57have a lot of like bot created like the
- 42:59test failure issues and they're all
- 43:01created by the bot and every time
- 43:02there's a bot user, we redact we check
- 43:05if we have access to that bot's project
- 43:08so that we can redact the name if you
- 43:10don't have the access to that project
- 43:11and like yeah it creates these uh N plus
- 43:15ones
- 43:29and if there are no comments And Alice,
- 43:32I guess you have a next point.
- 43:35Yes. Um, so, uh, after the last session,
- 43:40uh, I think for me there was a lot of
- 43:42listening, but afterwards processing it
- 43:44all, I was like, hm, uh, there are so
- 43:46many of the raised issues that can be
- 43:48potentially fixed with elastic search
- 43:51and that's why I asked Mitri to have a
- 43:54call and we started discussing it
- 43:56everything probably mostly from GLQL
- 43:58scope. Uh and yeah, I realized that like
- 44:02there is a lot of in place that we can
- 44:04potentially start using. uh and I
- 44:07thought like it's important just to
- 44:09narrow the scope because we're now
- 44:11discussing so many things and if just
- 44:13like trying to grasp everything it might
- 44:14be overwhelming and um um then uh also
- 44:19another thing I think you mentioned not
- 44:22everyone has uh elastic search because
- 44:24you were considering this before not
- 44:26everyone has uh elastic search on
- 44:27self-hosted instances but then again
- 44:30uh if it's a bigger customer they're
- 44:33potentially already using elastic search
- 44:36and they will actually might uh like
- 44:39this possibility to scale for them uh
- 44:41themselves and then uh optimizing thing
- 44:44for gitlab.com that's already a huge
- 44:47win. Uh so I thought of focusing on
- 44:51subgroups like searching through
- 44:53different subgroups because specifically
- 44:54for JLQL like one of the biggest
- 44:58advantages of using it in one place you
- 45:00can have uh you can plan your work
- 45:03through different hierarchies different
- 45:05name spaces and uh at the moment this
- 45:09most probably is going to time out uh
- 45:13and doing this through elastic search
- 45:16possibly it's going to work pretty fast
- 45:18and Midri already mentioned that they
- 45:20did quite some optimization for this in
- 45:22elastic search because uh code uh uh
- 45:25code team were are already also using
- 45:28this for their purposes. Uh so I created
- 45:31a proof of concept uh issue for us to
- 45:34start collaborating and uh yeah try to
- 45:37connect it on back end for JLQL. uh uh
- 45:40if elastic search is available then also
- 45:42feature flag potentially also maybe some
- 45:44URL params so that like if feature flag
- 45:46is enabled we can switch to uh uh
- 45:50graphql then elastic search and just to
- 45:52see like what's the the the yeah time
- 45:54difference how like are the results
- 45:56similar uh and uh maybe having this
- 46:00small step of us connecting it uh then
- 46:03we can build on that um yeah I think
- 46:07yeah I think that's like the the the
- 46:10overview of the the the potential thing
- 46:12we would like to try out for Jok.
- 46:18Yeah, I I think that's a good idea to
- 46:20have some sort of a proof of concept
- 46:22with the elastic search. What I would
- 46:25what I would suggest in a way is to pick
- 46:28something that we have in posgress and
- 46:30then try to do that same thing in in uh
- 46:33elastic search so that we can compare
- 46:36somewhat apples to apples. It's not
- 46:38going to be apples to apples obviously
- 46:39because like the two beckons but uh as
- 46:42close as possible. So then it will be an
- 46:44easier like you already mentioned it
- 46:46will be an easier comparison to
- 46:48understand like what are the potential
- 46:49gains and and and whatnot. Um because
- 46:52otherwise if we do it totally different
- 46:54it will be kind of different. It'll be
- 46:56also a easier cell I would say to
- 46:58product as well in in and all that. Um
- 47:01if you if we see a nice performance
- 47:04improvement and and all that. Yeah. So
- 47:07yeah that's that's a good suggestion I
- 47:10did
- 47:12identifying slow queries uh which uh for
- 47:17which the fields already exist in
- 47:19elastic search just not to spend time on
- 47:21reindexing data. So we will try to find
- 47:23solo query uh which data is in elastic
- 47:27search and we'll try to replicate that.
- 47:34Yeah, like even adding something I think
- 47:35locally it should be pretty fast. And
- 47:37again like if if that's something that
- 47:40locally
- 47:41is slower you you gain locally like x
- 47:45times the the speed then that's also a
- 47:47good uh proof I would say and then we
- 47:51can expand it to a specific group in
- 47:54production or whatnot.
- 47:58Uh Mitri, was there anything I missed
- 48:00and you wanted to add because we
- 48:02discussed a lot of things last week.
- 48:04Uh maybe only one question. Do we want
- 48:07to focus on namespace searches? So is it
- 48:11possible to use to include subgroups for
- 48:15JLQL? Maybe we can have side by side
- 48:18because I think elastic search is the
- 48:22strongest point is for namespace
- 48:24searches. It's possible. And I think
- 48:26what we'd want to actually look at into
- 48:29is a unified query where we get group
- 48:34level work items and project level work
- 48:37items and you query them for instance
- 48:39from GitLab work uh level right some
- 48:42like some some root level group and now
- 48:44you want give me all the epics issues
- 48:47and tasks for instance right um with
- 48:50these filters I don't know maybe labels
- 48:51maybe I don't know what what we have in
- 48:53in elastic search but some kind of a
- 48:55query that we can build. I think we have
- 48:58work items route today uh at the GitLab
- 49:02work group level. So then you can build
- 49:04some sort of a query and see and see
- 49:06what the posgress and what the GraphQL
- 49:08is for that but not as like simple
- 49:11enough that it can be replicated in uh
- 49:13in elastic search but at the same time
- 49:15it will probably take quite a bit of
- 49:17time to to return results.
- 49:29That that having said it's it still
- 49:31sounds like we should try and focus some
- 49:34of our time into improving the GraphQL
- 49:36overhead because like regardless if it's
- 49:39going to be through the posgress back
- 49:42end or the elastic search back
- 49:44end if we are going to use the GraphQL
- 49:47API to return or the the GraphQL as a
- 49:50front-end interface turning turn data is
- 49:52like the overhead is is is quite big. Um
- 49:57so yeah
- 49:59actually uh I wanted to kind of pick
- 50:04like uh on the action items for the next
- 50:07one. So it looks like um at the moment
- 50:11Hinrich you still be looking in the slow
- 50:15kind of the database side of things
- 50:17right? uh potentially on the group level
- 50:20as well.
- 50:22Yeah. And uh Alexander, do you still
- 50:25plan to investigate the GraphQL further?
- 50:29The overhead? I I don't have much there.
- 50:31Like I I've hit a bit of a wall because
- 50:34I don't understand how we can like all
- 50:36of the all of all that I'm seeing in
- 50:39Flame Graves is is GraphQL internals
- 50:43basically. So, I'm not sure like what
- 50:47I'd love to pair with someone who has
- 50:48more knowledge into GraphQL potentially
- 50:51where I don't know um or I'm I'm open to
- 50:54to collaborate with whoever is has more
- 50:56knowledge into GraphQL, but otherwise I
- 50:58don't know uh what to do there to to be
- 51:01honest. I'm I'm kind of stuck um into
- 51:04improving the the GraphQL overhead on
- 51:07its own. I think we need to clear out
- 51:11the N plus1's first before you can
- 51:14get a better picture of the flame graph
- 51:16and like because with there are
- 51:18repeating parts, right? So it's kind of
- 51:20like hard. I've removed I've I've
- 51:22removed the M plus ones from my query.
- 51:24So like in my testing I actually remove
- 51:26the linked item so that I'm I'm not
- 51:29affected by the N plus1's because I've
- 51:31discovered that as well. So I just
- 51:32removed that widget altogether. Um so
- 51:36I'm not I'm not seeing N plus1's on the
- 51:38database side for for myself uh on my
- 51:41local testing. But again, the overhead
- 51:43is just like immense. Uh like 50
- 51:46milliseconds on the database side versus
- 51:48like 10 seconds or something like that
- 51:50to get that data out um through the
- 51:53whole query is just too much.
- 51:57It's interesting to say you don't see
- 51:58any N plus ones
- 52:01um besides the related links because
- 52:03there are I think many in there.
- 52:06Uh no, I'm not seeing them in the
- 52:09database. I like uh I I don't maybe the
- 52:12data that I'm having locally is not uh
- 52:16returning some of the results. I I don't
- 52:17know. I don't have the data. Maybe
- 52:18that's not that's why I'm getting that.
- 52:21But yeah, I I didn't see um I didn't see
- 52:25any of the obvious M plus ones.
- 52:28Is there anyone here who has more
- 52:31experience with the GraphQL
- 52:33internals or do you know anyone in
- 52:37GitLab
- 52:38who would be good to pair
- 52:45with? Maybe I can help with that. Like
- 52:49I've looked into the tracing code stuff.
- 52:51So I'm also curious about the thing that
- 52:53you said about the the difference you
- 52:56see on like how long the DB returns the
- 52:59data versus you know how long it takes
- 53:01to serialize the data to this JSON
- 53:04thing. So I think yeah I can I can put
- 53:07something on our on the notes thing
- 53:09right. So it's like this is a similar
- 53:11thing and yeah we could I I I can I can
- 53:14put something on our calendar and at
- 53:15least I can present what I have and and
- 53:18then we can we can see how we can split
- 53:20the work or what we can find. But yeah
- 53:23I'll I'll I'll take that offer and uh
- 53:25Sure. Thanks.
- 53:29Cool.
- 53:31Uh so yeah from now on the like the
- 53:33action items uh Henrik you're looking at
- 53:35the SQL Alexander and Henrik you uh
- 53:38together looking at the GraphQL Eugene
- 53:41as I understand focusing on this N plus
- 53:43ones right? Uh yeah the linked items
- 53:45ones is the one I'm focusing on now.
- 53:48Yeah and Alissa is working on the
- 53:51elastic search PC. Uh anything else from
- 53:56the like what what what does everybody
- 54:00else wants to work on? Uh something I I
- 54:03found earlier when testing the the
- 54:05difference with widgets um is
- 54:09considering the the queries when we
- 54:11don't have a current user. So in um some
- 54:16items are still accessible because
- 54:18they're public. And so I found we we
- 54:21have a bug now that we're not um we
- 54:23don't have access to those items. But
- 54:25once you feed fix the bug uh those
- 54:28queries are really really slow and I
- 54:30don't know if something that we want to
- 54:32consider eventually um like about 20
- 54:35seconds uh some of them and I think it's
- 54:39because maybe I don't know maybe there's
- 54:42something we can improve there maybe
- 54:44even in the finder of returning things
- 54:48earlier or doing less authorization
- 54:51um something to consider maybe less
- 54:53priority
- 54:55I think that's overlapping with the work
- 54:57that I was wanting to work. Uh that
- 55:01issue related to the when the user has
- 55:04access doesn't has access or is not uh
- 55:07authenticated. I haven't started that
- 55:09yet because my pipelines are all red but
- 55:12I think it's overlapping there right
- 55:18and one more question from my side. Do
- 55:20you think it's worth it to look into the
- 55:22P band user denormalization?
- 55:28Yeah, I looked at the queries and like
- 55:31um it's not right now I don't think it
- 55:35is a feasible thing because like earlier
- 55:38I was showing them like uh the
- 55:40comparison between adding a work item
- 55:42type query because the default right now
- 55:44is we have a work item type ID clause
- 55:46and the um what's this band user clause
- 55:50right um so switching that exists query
- 55:53into something like
- 55:56uh issue hidden equals false or
- 55:59something if we denormal denormalize
- 56:01that into a boolean right it's going to
- 56:04be similar to the two clause thing where
- 56:06you can't have a single index I mean you
- 56:09can if you add an index for everything
- 56:11you know and add a hidden field on every
- 56:14index but the main problem right now is
- 56:16that if if you don't have this sorted
- 56:18index then it will be fetching all the
- 56:20issues that m match all the conditions
- 56:22and then sorting in memory And I found
- 56:25that that's the slow part right now. Um
- 56:28especially with a group level when there
- 56:29are a lot more. So right now there's
- 56:31like I'm testing on GitLab or GitLab
- 56:33with 75,000 um issues and it sorts into
- 56:36memory, fetches into memory and sorts
- 56:38them takes like 500 milliseconds or so
- 56:41right now. Okay, makes sense. Yeah, for
- 56:43my testing the band user query only
- 56:44performed better if I was able to
- 56:47denormalize it. Like I used hidden or
- 56:49whatever and then added an index on it.
- 56:51before adding the index there was no
- 56:54improvement as you said.
- 56:56Yeah.
- 57:00Okay. Cool. And we are at actually 10
- 57:04minutes over time.
- 57:05Uh any other like points that we want to
- 57:09discuss
- 57:10sync and
- 57:13quickly? No.
- 57:15Uh then thank you everyone for very
- 57:18productive discussions and all the work
- 57:20that you've done over the week. Uh so
- 57:22yeah let's continue. Looks like there is
- 57:25a lot we can do to improve there. Bye
- 57:28everyone.
About this transcript
This page contains the full transcript of Work Items API performance WG - 2025-03-11 by GitLab Unfiltered, generated from the public captions YouTube serves with the video. The transcript has 8,972 words across 1,278 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.