[01:44:11] 10DBA, 10Wikidata, 07Performance: 5-10 times more rows are currently read from the s5 master than from all other masters together - https://phabricator.wikimedia.org/T146529#2664113 (10hoo) >>! In T146529#2664889, @aaron wrote: > Also seeing: >… That has been fixed with 37a2c43273571af41ea38ad39c84f7cdde869... [07:35:40] 10DBA, 06Operations, 10ops-eqiad: db1060: Degraded RAID - https://phabricator.wikimedia.org/T146449#2666237 (10Marostegui) All good now! ``` Device Present ================ Virtual Drives : 1 Degraded : 0 Offline : 0 Physical Devices : 14 Disks... [07:36:57] 10DBA, 06Operations, 10ops-eqiad: db1060: Degraded RAID - https://phabricator.wikimedia.org/T146449#2666238 (10Marostegui) 05Open>03Resolved [07:59:39] hey jynus! just checking, on db tables do we 1) always need an auto increment id, that is a primary key OR 2) always need a primary key ? [08:11:32] addshore, 2 [08:11:41] okay! many thanks! :) [08:12:00] in some cases it may be an auto_increment, but prefer a natural one if it makes sense [08:12:06] and it is small [08:12:54] 3 varchar(255) == large; 2 ints == small [08:21:05] jynus: how about 1 VARBINARY(255), 1 VARBINARY(32) and 1 int? [08:21:44] addshore, in that say I would suggest, create at ticket, and discuss it [08:21:57] it always is an "it depends" [08:22:17] there may be reasons to go for it [08:22:41] s/say/case/ [08:22:52] okay, well right now this will be for a new extension so I'll initially just choose one or the other, but changing it before it would go near production should be easy enough! I can alos create a ticket, the create is at https://gerrit.wikimedia.org/r/#/c/312257/2/db/addCognateTitles.sql currently [08:22:58] it will be on a case by case scenario [08:23:42] I see, add me to the review and make sure I review it [08:23:58] I may need some background about it [08:23:59] okay! :) [08:24:34] for example, if that was an n:n table full of foreign keys [08:24:39] it would make sense [08:24:46] but again, it depends on the context [08:25:26] yeh, so if there was an auto inc id instead of the composite primary key described above it would essentally never be used for selecting, also also would never be a foreign key. [08:25:44] that doesn't necesarrily rules it out [08:25:51] because it may be used for table maintenance [08:26:05] there are some general tips [08:26:14] like trying to avoid that if it is not used [08:26:38] but then there are some edge cases for pure implementation side [08:26:51] again, I will need some context [08:27:06] I am busy these week, can this wait a bit? [08:27:10] *this [08:28:12] well, im actively working on it now and I expect to go through quite a few patches in the next week, but again, as none of the code I see myself writing will depend on an id auto inc right now I can ave the primary key eaither way and easily switch to the best before deployment! :) [08:28:26] can you send me a summary mail [08:28:41] with the general idea of the table (it can be ticket links)? [08:28:43] I'll file a ticket for review the db schema for the extension once I have the first version merged? [08:28:51] and I will review it this week [08:28:54] ok? [08:28:55] okay! [08:29:04] thanks! (as always)! [08:29:07] sorry, this week because the offsite [08:29:15] ahh yes! [08:29:15] I am a bit distracted with pure ops work [08:46:34] " I'll file a ticket for review the db schema for the extension once I have the first version merged?" [08:46:48] Note the PK is a must, no matter the format [08:46:55] yup! :) [08:47:11] I wouls suggest in case of doubt, use the natural key [08:47:19] but add it from the start [08:47:32] * addshore will never introduce a table with no PK, especially after knowing the pain adding wl_id has caused etc. [08:47:33] otherwise schema changes will be impossible [08:47:37] exactly [08:47:39] :-) [08:47:47] [= [10:27:32] 10DBA, 10Continuous-Integration-Infrastructure, 10MediaWiki-Database: Enable MariaDB/MySQL strict mode on CI slaves - https://phabricator.wikimedia.org/T119371#2666528 (10hashar) [13:50:05] 10DBA, 06Operations, 10ops-eqiad: db1060: Degraded RAID - https://phabricator.wikimedia.org/T146449#2667177 (10Marostegui) thanks [15:30:46] 10DBA, 10CatWatch, 10MediaWiki-General-or-Unknown, 06TCB-Team, and 4 others: SELECT /* CategoryMembershipChangeJob::run 127.0.0.1 */ GET_LOCK('CategoryMembershipUpdates:XXXX', 10) AS lockstatus - https://phabricator.wikimedia.org/T133801#2667501 (10hashar) 05Open>03Resolved a:03aaron Fixed by https:/...