Pesquisar

摘要
· 十二月 22

Publicações Desenvolvedores InterSystems, Dezembro 15 - 21, 2025, Resumo

问题
· 十二月 22

How to make IRISLIB/HSLIB writable on Docker?

I know this is not recommended but I need to investigate a bug and to modify some system classes.
When I set the "Mount as read-only" flag to "off" IRIS says:

ERROR #43: the write daemon failed to set the READ/WRITE flag in IRISLIB
This database is mounted as read-only due to 'Failed to access iris.lck file'!
讨论 (0)2
登录或注册以继续
文章
· 十二月 22 阅读大约需 2 分钟

Índices: O Poder Silencioso por Trás de Consultas Rápidas

O Poder da Indexação em Tabelas de Banco de Dados

Ao trabalhar com bancos de dados, a maioria dos desenvolvedores entende o conceito de um índice e por que ele é usado: para acelerar a recuperação de dados. Mas o real impacto da indexação muitas vezes só fica claro quando comparamos cenários com e sem ela.

Você sabe o que acontece sem um índice?
Imagine uma tabela com três colunas: Name, Age, e MobileNumber.


Considere esta consulta:

Se a coluna Idade (Age) não tiver um índice, o motor do banco de dados irá:

  • Verificar se o campo da condição WHERE possui um índice.
  • Se não houver, ele fará uma varredura completa da tabela.
  • Para cada linha, ele verificará o valor da Idade e retornará as correspondências.

Isso significa que o motor atravessa toda a estrutura de dados, o que consome muito tempo em tabelas grandes.

O que acontece com um índice?

Agora, se a coluna Idade estiver indexada, o processo muda drasticamente:

  • O motor vai diretamente para a estrutura do índice.
  • Ele encontra o nó para Idade = 26.
  • O índice aponta para os IDs de registro correspondentes na tabela principal.
  • O resultado é obtido quase instantaneamente.

É por isso que a indexação é uma ferramenta de otimização tão poderosa.

Uma Lição da Vida Real
Recentemente, encontramos uma situação interessante que destacou a importância dos índices. Nossa tabela tinha 5 registros e a coluna Idade estava indexada. Então, por engano, excluímos duas entradas da estrutura do índice (não da tabela principal). Essas entradas correspondiam aos IDs X001 e X005, ambos com Idade = 26.


Quando executamos:
SELECT ID, Age, EmpId, Mobile, NameFROM Company.Employee WHERE Age = 26 

Esperávamos 3 registros (já que a tabela principal ainda os tinha), mas apenas 2 registros apareceram.

Por quê? Porque a consulta confiou no índice, e o índice estava incompleto.

Conclusão Principal
Os índices são poderosos, mas devem ser mantidos adequadamente. Se um índice for excluído acidentalmente ou corrompido, não se preocupe; você pode reconstruí-lo usando o comando abaixo:

Do ##Class(Company.Employee).%BuildIndices()

Moral da história: Índices tornam as consultas rápidas, mas também se tornam a "fonte única da verdade" para a recuperação. Manipule-os com cuidado! 😅

讨论 (0)1
登录或注册以继续
公告
· 十二月 22

Season’s Greetings to the Developer Community

Dear Community,

As the 🎄 Festive Season 🎄 approaches, we’re excited to send our warmest wishes your way. May your holidays be filled with the joy of 🧑‍💻 learning, 🫂 connecting with fellow developers, and the thrill of new ideas and challenges waiting in the year ahead!

Looking back on 2025, we’re delighted to celebrate another year of remarkable achievements together with YOU, our incredible members:

✨ Developer Community celebrated the 10-Year Anniversary and continued to grow with thousands of new members and contributors!
✨ On Developer Community, we expanded our Developer Community AI capabilities and improved search
Open Exchange surpassed 1,100 applications, including new tools, frameworks, and integrations
✨ On Ideas Portal you suggested overall 600 incredible ideas and bug reports, with many now in progress or already implemented
Global Masters introduced new challenges, badges, and seasonal quests that kept engagement at an all-time high

A heartfelt THANK YOU to our brilliant members, and to our dedicated moderators and admins, for keeping this community vibrant, collaborative, and inspiring. Your passion and innovation continue to elevate the ecosystem every single day.

Here’s to more coding, learning, and connection in the year ahead. Wishing you a joyful holiday season and an innovative 2026! 🥳🎄✨

With gratitude,
The Developer Relations Team ❤️

讨论 (0)1
登录或注册以继续
摘要
· 十二月 22

InterSystems Developers Publications, Week December 15 - 21, 2025, Digest

Articles
Announcements
Questions
Discussions
December 15 - 21, 2025Week at a GlanceInterSystems Developer Community