Rechercher

Article
· Juin 13, 2024 4m de lecture

How to check the size of your data

InterSystems FAQ rubric

Data for InterSystems products (table row data, object instance data) is stored in global variables.
The data size of each global can be obtained by clicking the properties of the global you want to view from the Management Portal > System > Configuration > Local Database > Globals page, and then clicking the Calculate Size button on the Global Attributes page that appears.
To display the data sizes of globals in a namespace, you can call ^%GSIZE utility on the terminal.
The method of execution is as follows.

USER>do ^%GSIZE
 
Directory name: c:\intersystems\ensemble\mgr\user\ =>
All Globals? No => Yes
^DeepSee.ActiveTasks contains no data
Include it anyway? No => Y
Include any other similar globals without asking again? Yes =>
^DeepSee.ActiveTasks contains no data
Include it anyway? No => Yes
Include any other similar globals without asking again? Yes => Yes
^DeepSee.FeatureStats contains no data -- included
^DeepSee.Session contains no data -- included
^oddBIND     contains no data -- included
^oddMETA     contains no data -- included
^oddStudioDocument contains no data -- included
^oddStudioMenu contains no data -- included
^rINCSAVE    contains no data -- included
91 items selected from
91 available globals
Show details?? No => Yes
Device:
Right margin: 80 =>
directory: c:\intersystems\ensemble\mgr\user\                                   Page: 1                           GLOBAL SIZE                        26 Jun 2017
                                                                         6:56 PM
      Global        Blocks       Bytes Used  Packing   Contig.
      --------    --------  ---------------  -------   -------
      CacheMsg           1            3,812     47 %         0
      DeepSee.ActiveTasks
                         1               24      0 %         0
      DeepSee.AgentLog
                         1            6,008     74 %         0
      DeepSee.Agents
                         1              688      8 %         0
      DeepSee.BucketList
                         1               76      1 %         0
      DeepSee.Cache.Axis
                        25          142,616     70 %        14
      DeepSee.Cache.Listing
                        15           87,728     72 %        11
      DeepSee.Cache.Results
                        31          183,200     72 %        17
      DeepSee.Cubes
                         3           17,936     73 %         0
                                         to continue or '^' to STOP:
2 Comments
Discussion (2)2
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juin 13, 2024

DateTime from yyyy-mm-dd hh:mm:ss.000 to yyyymmdd

how do I convert DateTime from yyyy-mm-dd hh:mm:ss.000 to yyyymmdd

5 Comments
Discussion (5)2
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juin 13, 2024

Include CSP in CLS.

Is there any way to include a CSP page within a CLS?
Example: #Include file.csp 

Context: I work with a legacy that most screens are built using only CLS. I'm trying to change this by separating the frontend layers to be built only with CSP and backend layers using CLS. I improvised a method that injects an iframe to render the CSP in CLS through that iframe, but I'm still not happy. I need to know if there is any way to include this CSP using some specific resource for this.

15 Comments
Discussion (15)3
Connectez-vous ou inscrivez-vous pour continuer
Article
· Juin 13, 2024 3m de lecture

Plato principal de la Cumbre Mundial 2024

¡Hola Comunidad!

Los dos últimos días en la Cumbre Mundial de InterSystems han sido nada menos que extraordinarios, ¡y estoy encantada de compartir con vosotros lo más destacado de esta increíble experiencia!

Desde primera hora, @Anastasia Dyubaylo y yo dimos la bienvenida a nuestros amigos de la Comunidad en nuestro stand

que se convirtió en un bullicioso centro de actividad.

@Guillaume Rongier, Luc Chatty, @Raj Singh, @Dmitry Maslennikov, @Olga Zavrazhnova, Lucian Rotar, @Thomas Dyar, @Irène Mykhailova

@Claudio Devecchi, @Anastasia Dyubaylo, @Irène Mykhailova, @Daniel Franco

@Anastasia Dyubaylo, @Rochael Ribeiro, @Olga Zavrazhnova  

Estuvimos encantados de recibir a desarrolladores de todos los rincones, deseosos de intercambiar ideas y explorar las últimas innovaciones.

@Jennifer Hack, @Jochen Deubner 

@Irène Mykhailova, @Guillaume Rongier, Luc Chatty, @Adeline Icard  

Las conversaciones eran animadas, las ideas fluían libremente y la energía positiva en torno a nuestro stand era contagiosa.

@David Reche, @Dmitry Maslennikov, @Rochael Ribeiro, @Anastasia Dyubaylo, @Olga Zavrazhnova, @Irène Mykhailova, @Eduard Lebedyuk  

Cada interacción enriqueció nuestra comunidad y reforzó nuestros lazos.

@Stephen Morrison, @Raj Singh, @Irène Mykhailova

Las sesiones de los dos últimos días han sido un éxito fenomenal, repletas de presentaciones inspiradoras y debates apasionados. Uno de los momentos más destacados del día fue la fascinante sesión dedicada al uso de Python, dirigida por uno de nuestros brillantes moderadores @Guillaume Rongier.

Otro de nuestros talentosos moderadores, @Dmitry Maslennikov, fue el presentador de una sesión muy esperada sobre "InterSystems IRIS Búsqueda Vectorial y el Ecosistema Python".

Tras un ajetreado día de sesiones y debates inspiradores, tuvimos ocasión de relajarnos y divertirnos en el Museo Nacional Smithsonian de Historia Americana.

La velada estuvo amenizada por la fantástica actuación del grupo Integrity Check, que encendió el ambiente con su pegadiza música.

A medida que la Cumbre se acercaba a su fin, llegó el momento de las despedidas de corazón.

@Olga Zavrazhnova (Global Masters), @Vita Tsareva (Caelestinus), @Dean Andrews (jefe del equipo de Relaciones con los Promotores), @Anastasia Dyubaylo (Comunidad de Desarrolladores), @Irène Mykhailova (Comunidad de Desarrolladores)

Una vez concluidas las sesiones, todos se reunieron para los últimos intercambios y despedidas. Las despedidas estuvieron llenas de promesas de volver a reunirse en la próxima Cumbre. Sonrisas, abrazos y cálidas conversaciones marcaron el final de este evento, poniendo de relieve el éxito de la Cumbre y la fuerza de nuestra comunidad.

Los dos últimos días de la Cumbre Mundial de InterSystems han sido una mezcla perfecta de aprendizaje, intercambio y camaradería. Todos nos vamos de esta Cumbre enriquecidos por los encuentros e intercambios, con recuerdos inolvidables y un montón de ideas para el futuro.

Gracias a todos los que han participado y contribuido a hacer de esta Cumbre una experiencia excepcional. Manténganse en contacto y nos vemos en la próxima Cumbre para descubrir aún más cosas e innovaciones.

Buen viaje y hasta pronto.

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juin 13, 2024

Which are the best practises to handle large JSON?

Hello everyone,

Recently, I've been working on a Business Process that processes a large JSON FHIR message containing up to 50k requests in an array within the JSON.

Currently, the code imports the JSON as a dynamic object from the original message stream, obtains an iterator from it, and processes each request one at a time in a loop.

The performance meets the requirements, even with much larger requests than the one exposed above. However, I am interested in learning the best practices for handling large JSON in ObjectScript (and why not, Embedded Python) to achieve better performance for future developments.

Here are some ideas I have considered:

  1. Iterative Processing: Process each element of the JSON iteratively without loading the entire stream into memory.
  2. Chunking: Split the loaded JSON into smaller chunks and process them one by one. I could split the array in parts and I wonder if getting an iterator from a smaller JSON chunk would reduce computation time.
  3. Parallel Processing: After splitting the JSON, using parallel processing to handle multiple requests simultaneously. I read something about %SYSTEM.WorkMgr but I'm not sure how can I implement it in this case.

I would appreciate any technical information or reference to documentation about the listed topic or any other additional best practices that could help in handling large JSON data more efficiently in ObjectScript and Embedded Python. 

Thank you!

2 Comments
Discussion (2)3
Connectez-vous ou inscrivez-vous pour continuer