Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [PRESTAZIONI] Xml vs Database relazionale
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question [PRESTAZIONI] Xml vs Database relazionale

Ho appena finito di organizzare un lavoro con una serie di moduli in cui i dati sono memorizzati in file .xml. Poi mi è venuto un dubbio: se il mio "datore di lavoro" dovesse memorizzare molte notizie sotto forma di html in un campo CDATA del modulo "NEWS" sarà più veloce o più lento che tenere gli stessi dati in un campo MEMO di Access??

Per quanto riguarda la facilità e la comodità ho già scoperto quanto posso essere fantastico serializzare e deserializzare con xml... e infatti vorrei orientarmi verso quest'ultimo. Però non vorrei che una volta raggiunti ad esempio i 300kb di file xml l'aggiornamento delle pagine del sito diventi lentissimo!

Grazie!

:ciao:

Ale

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

15-04-2004 10:38
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

potresti inventarti un modo, per esempio creare un file xml per ogni giorno, o comunque trovare un modo per conservare tutte le info che ti servono, ma in piccole dosi - almeno tanto piccole da essere lavorabili -

__________________
http://www.twitter.com/0m4r

15-04-2004 10:55
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ci avevo già pensato, ma poi se devo fare una ricerca devo aprire in sequenza tutti i file che contengono le notizie? E non è meno performante del database? :?

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

15-04-2004 11:14
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a questo non avevo pensato...

__________________
http://www.twitter.com/0m4r

15-04-2004 11:17
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nous
.:Retore Pomposo:.

User info:
Registered: Dec 2001
Posts: 2945 (0.33 al dì)
Location: Fino Mornasco - Como
Corso: Informatica
Anno: Specialista
Time Online: 16 Days, 13:56:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

SQLServer e Oracle ti permettono di importare (esportare) dati da varie fonti in orari predefiniti, in questo modo potresti importare in DB i dati del file XML verso le 4 di mattina, svuotare il file (dopo aver verificato che l'operazione sia andata a buon fine) e risolvere il problema.
Prima dell'importazione effettua copia della tabella dove vai a scrivere, un errore di scrittura sarebbe fatale... poi imposta delle regole sulla consistenza del DB e se non sono rispettate importa i dati dalla tabella di backup, in modo da evitare perdita di dati.
Dovrebbe funzionare.

__________________
Cristian,il Nous che invoglia ^_^

"La capa è troppo in la,e la sbarba è troppo giovane..mi sa che qua si va in bianco"
Ryo Saeba (City Hunter)

15-04-2004 11:18
Click Here to See the Profile for nous Click Here to See the Blog of nous Click here to Send nous a Private Message Visit nous's homepage! Find more posts by nous Add nous to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie nous, la tua soluzione sarebbe perfetta... c'è un problema: posso usare solo quella merdina di Access! :(

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

15-04-2004 11:21
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nous
.:Retore Pomposo:.

User info:
Registered: Dec 2001
Posts: 2945 (0.33 al dì)
Location: Fino Mornasco - Como
Corso: Informatica
Anno: Specialista
Time Online: 16 Days, 13:56:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Chiaramente con Access non si può :)

__________________
Cristian,il Nous che invoglia ^_^

"La capa è troppo in la,e la sbarba è troppo giovane..mi sa che qua si va in bianco"
Ryo Saeba (City Hunter)

15-04-2004 11:21
Click Here to See the Profile for nous Click Here to See the Blog of nous Click here to Send nous a Private Message Visit nous's homepage! Find more posts by nous Add nous to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JaM
######

User info:
Registered: Jun 2002
Posts: 3604 (0.42 al dì)
Location: everywhere, anywhere, elsewhere...
Corso: ComDig
Anno: dott.??
Time Online: 62 Days, 16:55:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Beh ma non si potrebbe fare una pagina asp che viene eseguita a orari stabiliti e si smazza lei il trasferimento die dati da xml a access?

15-04-2004 11:39
Click Here to See the Profile for JaM Click Here to See the Blog of JaM Click here to Send JaM a Private Message Visit JaM's homepage! Find more posts by JaM Add JaM to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si, si potrebbe fare... ma a questo punto non mi conviene mettere tutto nel database e basta??

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

15-04-2004 11:43
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JaM
######

User info:
Registered: Jun 2002
Posts: 3604 (0.42 al dì)
Location: everywhere, anywhere, elsewhere...
Corso: ComDig
Anno: dott.??
Time Online: 62 Days, 16:55:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

probabilmente si :D

15-04-2004 11:43
Click Here to See the Profile for JaM Click Here to See the Blog of JaM Click here to Send JaM a Private Message Visit JaM's homepage! Find more posts by JaM Add JaM to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nous
.:Retore Pomposo:.

User info:
Registered: Dec 2001
Posts: 2945 (0.33 al dì)
Location: Fino Mornasco - Como
Corso: Informatica
Anno: Specialista
Time Online: 16 Days, 13:56:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by ripe
Si, si potrebbe fare... ma a questo punto non mi conviene mettere tutto nel database e basta??


A parte che questa soluzione prevede che il server web sia up 24h su 24, mentre l'altra funziona anche se il server web è down per manutenzione del sito , non credo che con ASP si possa fare una cosa simile, e se si potesse fare si avrebbero delle prestazioni oscene.
Piuttosto usa postgres, scrivi uno script che dato l'XML genera l'SQL e lo applica alla tabella che vuoi aggiornare.

__________________
Cristian,il Nous che invoglia ^_^

"La capa è troppo in la,e la sbarba è troppo giovane..mi sa che qua si va in bianco"
Ryo Saeba (City Hunter)

15-04-2004 11:45
Click Here to See the Profile for nous Click Here to See the Blog of nous Click here to Send nous a Private Message Visit nous's homepage! Find more posts by nous Add nous to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Con .NET si possono temporizzare tutte le operazioni utilizzando dei timer, ma non è comunque quello che volevo fare! :)
Mi sa che mi oriento verso il database a questo punto... tanto più di una mezza dozzina di utenti contemporanei non capiteranno mai! :D

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

15-04-2004 11:55
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 20:32.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.102 seconds (64.67% PHP - 35.33% MySQL) con 25 query.