<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server (και άλλες databases)</title><link>https://www.dotnetzone.gr:443/cs/forums/28/ShowForum.aspx</link><description>Θέματα που αφορούν τον SQL Server (7.0, 2000, 2005) αλλά και Oracle, Access, DB2, MySQL, κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73692.aspx</link><pubDate>Sun, 28 Jul 2013 04:43:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73692</guid><dc:creator>Thiseas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73692.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=73692</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;evagelos:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Παναγιώτης Καναβός:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Αν στέλνεις π.χ. 1000 ανεξάρτητα απλά inserts αντί για ένα batch των 1000 inserts, η ταχύτητα θα είναι χονδρικά 1/1000 σε σχέση με το batch.&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;και αυτό πως&amp;nbsp;το κάνω;&lt;/div&gt;&lt;div&gt;έστω ότι έχω ένα dataset με 1000 rows&lt;/div&gt;&lt;div&gt;πως θα κάνω με batch&amp;nbsp;εργασία αντί για ένα loop for (inti=0; i&amp;lt;1000 i++)&amp;nbsp; insert into&amp;nbsp; .....&amp;nbsp;;&lt;/div&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="https://www.simple-talk.com/sql/learn-sql-server/bulk-inserts-via-tsql-in-sql-server/"&gt;https://www.simple-talk.com/sql/learn-sql-server/bulk-inserts-via-tsql-in-sql-server/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/953b00b9-f42e-466d-b25d-febf8b31938d/insert-records-in-batches"&gt;http://social.msdn.microsoft.com/Forums/sqlserver/en-US/953b00b9-f42e-466d-b25d-febf8b31938d/insert-records-in-batches&lt;/a&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Απ: bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/71347.aspx</link><pubDate>Thu, 04 Oct 2012 23:02:36 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:71347</guid><dc:creator>evagelos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/71347.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=71347</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Παναγιώτης Καναβός:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Αν στέλνεις π.χ. 1000 ανεξάρτητα απλά inserts αντί για ένα batch των 1000 inserts, η ταχύτητα θα είναι χονδρικά 1/1000 σε σχέση με το batch.&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;και αυτό πως&amp;nbsp;το κάνω;&lt;/div&gt;&lt;div&gt;έστω ότι έχω ένα dataset με 1000 rows&lt;/div&gt;&lt;div&gt;πως θα κάνω με batch&amp;nbsp;εργασία αντί για ένα loop for (inti=0; i&amp;lt;1000 i++)&amp;nbsp; insert into&amp;nbsp; .....&amp;nbsp;;&lt;/div&gt;</description></item><item><title>Απ: bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/71310.aspx</link><pubDate>Thu, 27 Sep 2012 17:21:58 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:71310</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/71310.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=71310</wfw:commentRss><description>Βάζοντας τον profiler πιθανολογώ ότι θα πρέπει να του πεις και τι πρέπει να διαλέξει για να βγάλει αποτέλεσμα.&lt;div&gt;Εγω προτείνω να δει αυτο που θέλει σε συνδιασμό με τον profiler και αφου σε αυτόν έχει διαλέξει το tunning template και φυσικα έχει κάνει filtering στην βάση του.&lt;/div&gt;</description></item><item><title>Απ: bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/71309.aspx</link><pubDate>Thu, 27 Sep 2012 16:52:10 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:71309</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/71309.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=71309</wfw:commentRss><description>Εκτός και αν μιλάμε για πολύ άσχημο κώδικα, ο οποίος στέλνει πολύ μεγάλα strings ή binaries στο server, το bandwidth επηρεάζει ελαχιστότατα την απόδοση του server.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Αυτό που πραγματικά επηρεάζει, είναι ο αριθμός των εντολών και των συνδέσεων που πραγματοποιείς. Κάθε σύνδεση έχει κόστος και κάθε ανεξάρτητη εντολη απαιτεί ένα roundtrip πάνω από το δίκτυο το οποίο μπορεί να φάει πολλαπλάσιο χρόνο σε σχέση με την ίδια την εντολή. Αν στέλνεις π.χ. 1000 ανεξάρτητα απλά inserts αντί για ένα batch των 1000 inserts, η ταχύτητα θα είναι χονδρικά 1/1000 σε σχέση με το batch.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Επιπλέον, αν ανοίγεις νέα σύνδεση για κάθε εντολή, θα έχεις μεγάλη καθυστέρηση. Το .NET χρησιμοποιεί connection pooling για να ανακυκλώσει ένα σετ από συνδέσεις κάθε φορά που ανοίγεις και κλείνεις ένα connection object. Αν για κάποιο λόγο το κλείσεις όμως (μέσω keyword στο connection string), θα καταλήξεις να ανοιγοκλείνεις συνδέσεις χωρίς λόγο.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Αντί λοιπόν να κοιτάς το bandwidth, καλύτερα να βάλεις τον SQL Profiler για να δεις πόσες και ποιές εντολές στέλνονται στο server και πόσο χρόνο χρειάζονται.&amp;nbsp;&lt;/div&gt;</description></item><item><title>Απ: bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/71306.aspx</link><pubDate>Thu, 27 Sep 2012 09:27:53 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:71306</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/71306.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=71306</wfw:commentRss><description>&lt;p&gt;Με&amp;nbsp; αυτούς όχι.&lt;/p&gt;&lt;p&gt;Υπάρχουν όμως και άλλοι τρόποι που απαιτούν όμως μεγαλύτερη εμπειρία με δίκτυα και τον sql server.&lt;/p&gt;&lt;p&gt;Από τα συμφραζόμενα σου όμως καταλαβαίνω ότι θέλεις να μετρήσεις από την εφαρμογή σου τι στέλνει στον sql server. Αν το ζητούμενο σου είναι αυτό και εφόσον είσαι αυτός που έχει γράψει την εφαρμογή τότε μπορείς να το κάνεις με το &lt;a href="http://msdn.microsoft.com/en-us/library/7h2ahss8.aspx"&gt;Provider Statistics for SQL Server&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Απ: bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/71303.aspx</link><pubDate>Thu, 27 Sep 2012 05:26:47 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:71303</guid><dc:creator>evagelos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/71303.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=71303</wfw:commentRss><description>Σε αυτά όμως αν την ώρα που κάνω το μαζικό update ή insert έχω ανοίξει το facebook ή παίζω ένα online παιχνίδι, μπορώ να τα ξεχωρίσω;</description></item><item><title>Απ: bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/71301.aspx</link><pubDate>Thu, 27 Sep 2012 03:44:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:71301</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/71301.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=71301</wfw:commentRss><description>&lt;p&gt;Το θέμα με τον SQL Server δεν είναι τόσο το δύκτιο καθώς είναι ο 4ος παράγοντας. Δεν υπάρχουν συγκεκριμένοι μετρητές για τον SQL Server παρά μόνο οι κλασσικοί που υπάρχουν έτσι μπορείς να μετρήσεις με τους παρακάτω:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Network InterfaceBytes Total/sec &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Threshold: Sustained values of more than 80 percent of network bandwidth.&lt;/p&gt;&lt;p&gt;Significance: This counter indicates the rate at which bytes are sent and received over each network adapter. This counter helps you know whether the traffic at your network adapter is saturated and if you need to add another network adapter. How quickly you can identify a problem depends on the type of network you have as well as whether you share bandwidth with other applications.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Network InterfaceBytes Received/sec &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;This counter indicates the rate at which bytes are received over each network adapter. You can calculate the rate of incoming data as a part of total bandwidth. This will help you know that you need to optimize on the incoming data from the client or that you need to add another network adapter to handle the incoming traffic.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Network InterfaceBytes Sent/sec &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;This counter indicates the rate at which bytes are sent over each network adapter. You can calculate the rate of incoming data as a part of total bandwidth. This will help you know that you need to optimize on the data being sent to the client or you need to add another network adapter to handle the outbound traffic.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;ServerBytes Total/sec &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;This value should not be more than 50 percent of network capacity.&lt;/p&gt;&lt;p&gt;This counter indicates the number of bytes sent and received over the network. Higher values indicate network bandwidth as the bottleneck. If the sum of Bytes Total/sec for all servers is roughly equal to the maximum transfer rates of your network, you may need to segment the network.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Processor% Interrupt Time &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;This counter indicates the percentage of time the processor spends receiving and servicing hardware interrupts. This value is an indirect indicator of the activity of devices that generate interrupts, such as network adapters.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Network Interface(*)Output Queue Length &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;This counter checks to see how many threads are waiting on the network adapter. If there are a lot of threads waiting on the network adapter, then the system is most likely saturating the network I/O most likely due to network latency or network bandwidth.&lt;/p&gt;&lt;p&gt;Output Queue Length is the length of the output packet queue (in packets). If this is longer than two, there are delays and the bottleneck should be found and eliminated, if possible. Since the requests are queued by the Network Driver Interface Specification (NDIS) in this implementation, this will always be 0.&lt;/p&gt;&lt;p&gt;/*antonch*/&lt;/p&gt;</description></item><item><title>bandwidth</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/71300.aspx</link><pubDate>Thu, 27 Sep 2012 02:14:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:71300</guid><dc:creator>evagelos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/71300.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=71300</wfw:commentRss><description>&lt;p&gt;γεια σας παιδιά,&lt;/p&gt;&lt;p&gt;έχω φτιάξει ένα πρόγραμμα το οποίο συνδέεται σε μια βάση sql και στέλνει και παίρνει queries (select, insert, update).&lt;/p&gt;&lt;p&gt;Μπορώ με κάποιο τρόπο να δω τι bandwidth καταναλώνω;&lt;/p&gt;&lt;p&gt;Ευχαριστώ&lt;/p&gt;</description></item></channel></rss>