Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
c85092ac
Commit
c85092ac
authored
Jul 05, 2016
by
Yorick Peterse
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'index-on-emoji-name-and-user' into 'master'
Add index on both Award Emoji user and name See merge request !5061
parents
06c7d6f3
16d82510
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
CHANGELOG
CHANGELOG
+1
-0
db/migrate/20160703180340_add_index_on_award_emoji_user_and_name.rb
.../20160703180340_add_index_on_award_emoji_user_and_name.rb
+11
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
CHANGELOG
View file @
c85092ac
...
...
@@ -43,6 +43,7 @@ v 8.9.5 (unreleased)
- Fix assigning shared runners as admins. !4961
- Show "locked" label for locked runners on runners admin. !4961
- Downgrade to Redis 3.2.2 due to massive memory leak with Sidekiq
- Add index on the user and emoji name on AwardEmoji table !5061
- Fixes issues importing events in Import/Export. Import/Export version bumped to 0.1.1
- Fix import button disabled when import process fail due to the namespace already been taken.
- Security: Update RedCloth to 4.3.2 (Takuya Noguchi)
...
...
db/migrate/20160703180340_add_index_on_award_emoji_user_and_name.rb
0 → 100644
View file @
c85092ac
# rubocop:disable all
# Migration type: online without errors
class
AddIndexOnAwardEmojiUserAndName
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
disable_ddl_transaction!
def
change
add_concurrent_index
(
:award_emoji
,
[
:user_id
,
:name
])
end
end
db/schema.rb
View file @
c85092ac
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20160
628085157
)
do
ActiveRecord
::
Schema
.
define
(
version:
20160
703180340
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -112,6 +112,7 @@ ActiveRecord::Schema.define(version: 20160628085157) do
end
add_index
"award_emoji"
,
[
"awardable_type"
,
"awardable_id"
],
name:
"index_award_emoji_on_awardable_type_and_awardable_id"
,
using: :btree
add_index
"award_emoji"
,
[
"user_id"
,
"name"
],
name:
"index_award_emoji_on_user_id_and_name"
,
using: :btree
add_index
"award_emoji"
,
[
"user_id"
],
name:
"index_award_emoji_on_user_id"
,
using: :btree
create_table
"broadcast_messages"
,
force: :cascade
do
|
t
|
...
...
iv
@iv
mentioned in commit
3dee2366
·
Jan 12, 2017
mentioned in commit
3dee2366
mentioned in commit 3dee2366bf32413486a116247f04ca7c7aca1430
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment