close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 15 years ago

Last modified 15 years ago

#961 closed defect

DBTFile não funciona — at Version 1

Reported by: efujimoto Owned by: Víctor de Buen Remiro
Priority: highest Milestone: Mantainance
Component: ASCII data files Version:
Severity: blocker Keywords:
Cc:

Description (last modified by Víctor de Buen Remiro)

Estou com o seguinte problema, tento gravar um Set de 700.000 linhas (um exemplo pode ser gerado pelo código abaixo):

Set segmentos = [[ [["co_cliente";"id_cluster";"dt_inicio";"dt_fim"]] ]]<<
   For(1, 700000, Set(Real x){
     [[IntText(x), IntText(x), IntText(x), IntText(x)]]
   })

Se eu tento gravar usando BDTFile, um set com a mesma quantidade de linhas me é retornado, mas nenhum arquivo é gravado.

Se eu tento com o código abaixo, após um tempo o tol cai.

Text tempFile = "C:/TempFileCluster.txt";
Text WriteFile(tempFile, "co_cliente;id_cluster;dt_inicio;dt_fim"+NL);
Set EvalSet (Segmentos.T, Text (Set line){
  AppendFile(tempFile, TxtListItem(line, ";")+NL)
});

Change History (1)

comment:1 Changed 15 years ago by Víctor de Buen Remiro

Description: modified (diff)
Status: newaccepted
Note: See TracTickets for help on using tickets.