Diskuze: Fundamental work with Datatable and Treeview in VB.NET
Zobrazeno 3 zpráv z 3.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
Hi,
why English? Can't you express yourself in Czech?
So, you have realised you have a bottleneck somewhere. Did you find out where it is? Is it the data fetching, treeview filling, tree displaying?
I must say, loading all tables/DB into in-proc memory is usually bad idea -
imagine the table contains 2bil rows. Also, are you able to provide/display all
the fetched rows to the user at once?
You can load the data on demand - as user scroll your the treeview and expand
the nodes.
Further, the DataSet do quite much work around DataReader so if you no need that for another purpose - use just DR for data loading.
Dobry den,
omlouvam se psal jsem primarne na VBforum a napadlo me to dat I sem ale jelikoz
jsem na dovolene a jens se snazim zjistit jak postupovat po navratu tak uz jsem
to nechtal psat znova v cestine
Je pravda ze jsem nad tim premyslel nechat pouze level 0 a pri dvojkliku ho
expadnovat. Problem ale neni (ted) u nacitani stromu ale kdyz chci zmenit
hodnoty a na zaklade toho udelat update ikon/Tooltip ve strome. Pracuji se
softwary Process Dessigner a Process Simulate ktere maji stromy s o mnoho vice
polozkami a vse bezi rychla. Proro premyslim jak to udelat tak aby to bezelo
stejne rychle.
Problematicke misto jsem stale nezjistil, dela se to pres Debug.Print a casovym udajem nebo je nejaky sofistikovanejsi postup jak analyzovat co jak dlouho trva?
Nechapu tu posledni vetu. Datareader je to co pouzivam pro nacitani tabulky z XML do Datasetu. Nebo?
DEkuji za odpoved
Zobrazeno 3 zpráv z 3.