Skip to content

Instantly share code, notes, and snippets.

@akki
Last active January 13, 2019 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akki/f45c7cf5db30c025f49d862d82dd259a to your computer and use it in GitHub Desktop.
Save akki/f45c7cf5db30c025f49d862d82dd259a to your computer and use it in GitHub Desktop.
My work submission report for GSoC 2016

GSoC Work Submission

Name Akshesh Doshi
Organization Django Software Foundation
Project Reworking Django's Indexes

Merged code (Commited in master)

Introduce class based indexes (#26709)

  • 156e2d5 - Fixed #26709 -- Added class-based indexes.

  • b1e7d19 - Refs #26709 -- Required a name for Indexes passed to AddIndex.

  • f7e9071 - Refs #26709 -- Added IndexOperation to avoid code duplication.

  • 5244289 - Refs #26709 -- Added 'model' argument to SchemaEditor.add/remove_index()

  • 3551fb5 - Refs #26709 -- Documented SchemaEditor.add/remove_index()

  • fc3ac65 - Refs #26709 -- Checked allow_migrate_model() in Add/RemoveIndex operations

  • b92c6b7 - Refs #26709 -- Replaced Index.get_name() with set_name_with_model()

  • c969b17 - Refs #26709 -- Added type check for models.Index fields argument

  • a71724c - Refs #26709 -- Added index name to AddIndex.describe()

Add meta.indexes for class based indexes (#26808)

  • 6a8372e - Fixed #26808 -- Added Meta.indexes for class-based indexes

  • f7e00b4 - Refs #26808 -- Avoided clashing keyword arguments in test_autodetector

Allow defining order of column for indexes (#20888)

  • 311a8e8 - Fixed #20888 -- Added support for column order in class-based indexes.

  • f842d10 - Refs #20888 -- Added index order introspection.

Add support for GIN indexes (#27030)

  • 6e07ec3 - Fixed #27030 -- Added contrib.postgres.indexes.GinIndex

  • 236baa0 - Refs #27030 -- Added BtreeGinExtension operation

  • 2f19306 - Refs #27030 -- Added index type introspection on PostgreSQL

  • 7c9bd07 - Clarified when activating the btree_gin extension is necessary

Improve index name truncation (#24442)

  • 324c1b4 - Fixed #24442 -- Improved SchemaEditor's index name truncation.

Avoid remaking whole table to alter constraints in sqlite3 (#26841)

  • 2960e3a - Fixed #26841 -- Avoid remake tables for altering togethers in sqlite3

Factor out get_changes() in test_autodetector.py (#26795)

  • ca77b50 - Fixed #26795 -- Factored out get_changes() in test_autodetector.py.

Other improvements

  • 767849b - Removed unnecessary looping in sqlite3 SchemaEditor

  • bdba0fc - Fixed autodetector method name

Work-In-Progress/Unmerged code

  • !7083 - Fixed #27060 -- Take indexes into account in inspectdb command

  • !7038 - Fixed #26180 -- Add [Add|Remove]UniqueTogether operations (after an attempt at !6926)

  • !6995 - Fixed #26974 -- Added Hash index class for postgres

  • !6931 - Fixed #26906 -- Use AlterFooTogether as parent for AlterIndex/UniqueTogether operations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment