Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
Django-Memsql Initial Migration Error

I am getting the following error on my initial migration with django 1.10 with mysql backend connected to a 3 node MemSQL cluster.

django.db.utils.OperationalError: (1895, "The unique key named: 'django_content_type_app_label_76bd3d3b_uniq' must contain al l columns specified in the primary key when no shard key is declared")

I believe that this is the issue: MemSQL - Surrogate key as Primary and different unique keys at the same time in table creation

Any workaround/solution will be much appreciated.

Cheers

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Yes, your running into the same issue you linked to. MemSQL has limited support for unique keys that aren't the shard key (they are expensive for a distributed database to maintain).

Outside of changing django to make the table with the unique keys a REFERENCE table I don't think there is a good work around.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda