[18:24 UTC] *** Logging started. *** [11:24 AM PT] Andrew Hellershanks: Hello, everyone. [11:24 AM PT] Jagga Meredith: You're late. Current topic SQL optimization [11:24 AM PT] Ubit Umarov: hi Andrew, welcome to this week opensim meeting [11:24 AM PT] Andrew Hellershanks: I was working on some software that needs to be ready for a trade show in about a weeks time. The data format got changed on me at the last minute and now I'm still trying to get the code to realiably read the data. :P [11:25 AM PT] Vincent.Sylvester @hg.zetaworlds.com: I'll add the earlier conversation to the log no biggie [11:25 AM PT] Ubit Umarov: "realiably" is optimisitic :) [11:25 AM PT] Andrew Hellershanks: ty :) I was so deep in the code I wasn't even looking at theclock. [11:25 AM PT] Vincent.Sylvester @hg.zetaworlds.com: You don't have at least three alarms set for the weekly meeting? lol [11:27 AM PT] Vincent.Sylvester @hg.zetaworlds.com: In other news no more TryParse crashes, some issues with avsitter I cannot reproduce, so something might be awry still, but just as lost to the cause as before. At least doesn't crash, which is positive [11:28 AM PT] Andrew Hellershanks: Vincent, my PDA which had the alarm set died a few weeks back.. [11:28 AM PT] Vincent.Sylvester @hg.zetaworlds.com: In the words of the Diablo developers: Don't you have a smartphone [11:28 AM PT] Vincent.Sylvester @hg.zetaworlds.com: hehe [11:29 AM PT] Andrew Hellershanks: Vincent: No, I don't. [11:29 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Time to hold a fundraiser to get you one then :) [11:30 AM PT] Andrew Hellershanks: Not worth the money for a device I'd hardly ever use. [11:32 AM PT] Andrew Hellershanks: You finished the disucussion about SQL optimization? [11:33 AM PT] Jagga Meredith: I'm done [11:33 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Most of that is down to doing research on the current queries and how code then combines the data etc. Figuring out the "is" to plan the "should" [11:35 AM PT] Andrew Hellershanks: There are online query analyzer tools that help you optimize queries. [11:36 AM PT] Vincent.Sylvester @hg.zetaworlds.com: From the few glances I had at the db connector there are not many complex ones in there so I think most of problems is code that fetches tons of smaller pieces of data and then combines them rather than letting SQL do the heavy lifting [11:37 AM PT] Vincent.Sylvester @hg.zetaworlds.com: So it's down to figuring out what data it needs, how it currently fetches it and if that can be combined to a single query then to be broken up into the format it needs going forward [11:37 AM PT] Andrew Hellershanks: That seems likely. [11:38 AM PT] Vincent.Sylvester @hg.zetaworlds.com: It's "get this than these things for each" vs. "get that inner joined with this" or some form of that [11:39 AM PT] Vincent.Sylvester @hg.zetaworlds.com: The code itself also hasn't been touched in a while and probably has some slower methods in there or could benefit from better integration with other code and modules [11:40 AM PT] Vincent.Sylvester @hg.zetaworlds.com: I only started looking a bit at that over the weekend, no deep diving yet, submarine is still out for delivery heh [11:41 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Hasn't been much happening otherwise for me at least [11:42 AM PT] Andrew Hellershanks: That level of deep diving is going to take time before it yields any useful information. Thank you for taking the time to do the diving. [11:44 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Yeah it will. Groups is one of those things that seems slow despite having no real reason for it, given the amount of data other parts juggle just fine, so something is awry in there either conceptually or just old code. It "shouldn't" be this slow even considering the data structure [11:45 AM PT] Andrew Hellershanks: Groups is one area of the code that could be doing multiple queries to get to the wanted data due to the database structure. [11:47 AM PT] Vincent.Sylvester @hg.zetaworlds.com: It's programmers intuition perhaps telling me something is not quite right in there somewhere, finding it is another matter and I certainly don't want to rewrite the whole thing if I can help it [11:48 AM PT] Andrew Hellershanks nods [11:48 AM PT] Andrew Hellershanks: I've always thought the groups data structures seemed a little odd. [11:49 AM PT] Ubit Umarov: adn we do have 2 groups services in use [11:49 AM PT] Vincent.Sylvester @hg.zetaworlds.com: They are not that outlandish given the data it needs, but I think it does nothing to handle it gracefully and just brute forces what it needs [11:49 AM PT] Ubit Umarov: some grids use the older flotsam one [11:49 AM PT] Ubit Umarov: like osgrid [11:49 AM PT] Andrew Hellershanks: Right [11:50 AM PT] Vincent.Sylvester @hg.zetaworlds.com: I thought they moved away from that? [11:50 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Or was that just flotsam profiles? [11:52 AM PT] Ubit Umarov: core profiles are ok [11:52 AM PT] Ubit Umarov: they moved to them [11:53 AM PT] Andrew Hellershanks: None core profiles module doesn't use flotsam. [11:54 AM PT] Andrew Hellershanks: I just looked at the phpxmlrpc based groups code and it does have some queries that use JOIN. [11:55 AM PT] Vincent.Sylvester @hg.zetaworlds.com: It's remarkable how much faster those can be compared to individual queries and joining data in code. I noticed that with ossearch getting the additional data from classifieds and such to show profile data was ten times faster in SQL compared to two queries and php doing the work [11:55 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Sure it puts more load on the database, but there are query caches and indexes that help with that a little bit [11:57 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Also a bit easier to throw hardware at SQL than OpenSim given the way things operate [11:59 AM PT] Andrew Hellershanks nods [11:59 AM PT] Vincent.Sylvester @hg.zetaworlds.com: Oh right, for anyone that has taken a copy of the Hypergrid Wall I made a while back, I been working on a new version that greatly reduces the script load from 600 down to a single script. So a new copy should be available on the ZetaWorlds welcome region soon(ish). [11:59 AM PT] Andrew Hellershanks: We are at the top of the hour. Is there anyone who has a question they wanted to ask before they need to leave? [12:00 PM PT] Jagga Meredith: I'm done RL calls [12:01 PM PT] Andrew Hellershanks: ok, Jagga. Thanks for dropping by. [12:01 PM PT] Jamie.Jordan @grid.kitely.com:8002: thanks yall good meetinh [12:02 PM PT] Andrew Hellershanks: yw, Jamie. [12:02 PM PT] Jamie.Jordan @grid.kitely.com:8002: meeting :-) [12:02 PM PT] Andrew Hellershanks: :) [12:04 PM PT] Ubit Umarov: ok, rl also calls me. I was a bit quiet bc a bit indisposed rl [12:04 PM PT] Andrew Hellershanks: Ubit, np. Hope you feel better soon. [12:04 PM PT] Ubit Umarov: see u next week [12:05 PM PT] Ubit Umarov: thnx [12:05 PM PT] Andrew Hellershanks: Bye, Ubit. [12:05 PM PT] Ubit Umarov: seems osgridn groups is having issues [12:06 PM PT] Ubit Umarov: strange how that still did impact local chat and other region http [12:06 PM PT] Ubit Umarov: strange, need to take a look [12:06 PM PT] Andrew Hellershanks: Oh? Do they say what sort of issues? They have been having a number of problems. [12:06 PM PT] Vincent.Sylvester @hg.zetaworlds.com: There is a mantis about it basically stopping a region dead if it takes long to fetch group data [12:06 PM PT] Ubit Umarov: failed commes on console [12:06 PM PT] Vincent.Sylvester @hg.zetaworlds.com: Forgot the id [12:06 PM PT] Andrew Hellershanks: Hm... that seems a bit strange. [12:07 PM PT] Ubit Umarov: mb just a net glitch [12:07 PM PT] Ubit Umarov: also to presence [12:07 PM PT] Ubit Umarov: possible just tempory glitch [12:07 PM PT] Ubit Umarov: the strange part is how that did block local chat [12:07 PM PT] Andrew Hellershanks: That's possible. [12:08 PM PT] Ubit Umarov: shoud be o dif threads [12:08 PM PT] Ubit Umarov: but well all using the .net http code.. that may do t [12:09 PM PT] Vincent.Sylvester @hg.zetaworlds.com: groups refresh isn't async it's a block [12:09 PM PT] Ubit Umarov: they had limitation lik eonly allow 2 connections etc [12:09 PM PT] Andrew Hellershanks: If the code related to those functions has not changed the next question is to ask what has changed if it isn't some temporary network issue. Did they recently update .NET, for example? [12:09 PM PT] Ubit Umarov: wel dunno.. filed on TODO :) [12:10 PM PT] Ubit Umarov: we are on mono [12:10 PM PT] Ubit Umarov: cya ppl [12:10 PM PT] Andrew Hellershanks: ok. But what version is osgrid using and did they do a recent update? Perhaps there is another bad version of mono. [12:11 PM PT] Andrew Hellershanks: With it being the top of the hour and with Ubit just left I'll close the meeting for today. [12:11 PM PT] Andrew Hellershanks: Thank you all for coming. See you again next week. [19:11 UTC] *** Logging stopped. ***