To processa huge data with good speed and also paint the same data!

In my project genebrowser in which i am plotting gene, snp, and various other map, I am teking input as a flat file and also page is dynamic like user can change the coordinate view that he wants to see.
1. We have to plot GC percentage after reading the file and this GC % data is of around 10-15 MB size.How to manage this?"
2. due to plotting this huge data the painting of components get very slow.how to manage this?

If you use SS2008 and onward take a look at table valued parameter
create table myTable (col1 int, col2 datetime, col3 varchar(max))
go
create type myTableType as table (col1 int, col2 datetime, col3 varchar(max))
go
create procedure up_myTable_insertFromTable 
  @myTableData myTableType readonly
as
  insert into myTable (col1, col2, col3 )
  select col1, col2, col3 
    from @myTableData 
go
declare @myTable myTableType
insert into @myTable values(1, getdate(), 'Table Valued Parameters are great')
exec up_myTable_insertFromTable @myTable
The stored procedure parameter has to be READONLY. 
This means that you cannot modify it within the stored procedure. 
You can only modify it in the scope it was created. i.e.
 If you created a table type variable in your procedure you can modify the data in it, 
however if you pass that to another procedure that other procedure cannot modify it as it wasn't create 
in the scope of that procedure.
Otherwise
1 /*
    2 Here is the string that we need to split
    3 */
    4 DECLARE @str VARCHAR(100)
    5 SET @str = '0001,0002,0003,0004,0005'
    6 
    7 /*
    8 I am converting the string to an XML structure by 
    9 inserting XML tags.
   10 */
   11 DECLARE @x XML 
   12 SET @x = '<i>' + REPLACE(@str, ',', '</i><i>') + '</i>'
   13 
   14 /*
   15 Now we can apply XQuery to return a result set
   16 */
   17 SELECT x.i.value('.', 'VARCHAR(4)') AS Item
   18     FROM @x.nodes('//i') x(i)
   19 
   20 /*
   21 Item
   22 ----
   23 0001
   24 0002
   25 0003
   26 0004
   27 0005
   28 
   29 (5 row(s) affected)
   30 */
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • I have music on itunes with my mac and also have the same music on my ipod.  My question is can I also add the same music to my ipad with no additional charge?  Thanks

    I have music on my itunes which is also on my ipod. My question is: May I also sync the music to my ipad with no charge?

    Yes.

  • Import data from few tables and export into the same tables on different db

    I want to import data from few tables and export into the same tables on different database. But on the target database, additional columns have been added
    to the same tables. how can i do the import?
    Its urgent can anyone please help me do this?
    Thanks.

    Hello Junior DBA,
    maybe try it with the "copy command".
    http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/apb.htm
    Have a look at the section "Understanding COPY Command Syntax".
    Here is an example of a COPY command that copies only two columns from the source table, and copies only those rows in which the value of DEPARTMENT_ID is 30:Regards
    Stefan

  • When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    Macs have crazy headpne jacks in different models.
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • Can two Apple IDs be linked so that they can share data? My iMac and iPad have the same Apple ID and sync contacts, bookmarks, etc. My wife's iPad has a different Apple ID. Can it be linked somehow to mine to share contacts etc?

    Can two Apple IDs be linked so that they can share data? My iMac and iPad have the same Apple ID and sync contacts, bookmarks, etc. My wife's iPad has a different Apple ID. Can it be linked somehow to mine to share contacts etc?

    No. You cannot link your contacts to hers. However, you can use Home Sharing to share the information:
    Understanding Home Sharing
    iOS- Setting up Home Sharing on your iOS device
    Setting up Home Sharing for Apple TV (2nd & 3rd generation)
    iTunes- Setting up Home Sharing on your computer

  • I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    Can you supply a link?

  • Service sheet cancellation and also transport the additional data tab made

    service sheet cancellation and also transport the additional data tab made mandatory in the production server.

    HI,
    Service Entry sheet cancellation steps as follows.
    Step-1 Type  ML81N T-code
    Step-2  Click 'Other Purchase Order' button and enter your service sheet number.
    Step-3  Now, service sheet opened and  Click on change button(pencil button) of header level for display mode purpose.
    Step-4  Now, Click on Revoke button for acceptance and then SAVE the service sheet.
    Step-5  Then, Click on change button(Pencil button).
    Step-6  Now, display you deletion flag indicator(dust bin) in header level(same line of change button).
    Step-7  Now, Click on deletion flag button(dust bin button) and then SAVE the service sheet.
    At present, the particular service entry sheet deleted and also GRN value reversed. 
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • How to retrieve the Role of a custom sharepoint Group Progrmatically and also assigning the same roles to new user?

     I want to retrieve the roles assigned to custom group progrmatically and assigning the same roles to new user?

    Hi,
    According to your post, my understanding is that you want to retrieve the Role of a custom sharepoint Group Progrmatically and also assigning the same roles to new user.
    To retrieve the Role of a custom sharepoint Group, you can refer to:
    http://www.sharepointfix.com/2011/05/find-rolepermissions-of-currently.html
    To assign the same roles to new user, you can refer to:
    http://msdn.microsoft.com/library/Microsoft.SharePoint.SPRoleAssignment
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • The bottom part of my iphone4 screen cannot tap.. restored 2 times with latest firmware and yet still the same..is it possible to fix this?how?

    The bottom part of my iphone4 screen cannot tap.. I restored it 2 times with the latest firmware and yet still the same..is it possible to fix this?how? please guys help me =(

    iPhone and iPod Touch: Troubleshooting touchscreen response: http://support.apple.com/kb/TS1827

  • How can I create a buffer, array or pipeline that stores the last 5000 dates of a voltage measurement with PCI6036 & SCXI1104C and continously drops the last date and inserts the latest date (scanrate 200 or 2000Hz)?

    I develope a porgramm for continious monitoring. If the voltage of a channel exceeds or is lower than the upper or lower limit of tolerance the actual date must be stored and additionally the dates being stored 10sec before and after this event. Can somebody give some advice how to create the buffer to keep the dates 10s before the error event? Thank U.

    I've written you a quick array buffer vi. I'm not sure if it'll be fast enough though.. Try it and see! I've used the loop numbers in my array, but i'm sure you can feed in the dates instead.
    Attachments:
    Array_buffer.vi ‏26 KB

  • How to refresh the data in a container and to update the new data

    Hi,
    I have created a Module Pool Program in which i have two containers to display the long text.
    Initially this container is filled and based on some condition i want to update the text in the same conatiner.
    I am using the below two classes to do all this.
    cl_gui_textedit,
    cl_gui_custom_container,
    Could someone help me how to remove the long text in the container and update the new long text.
    I am getting the new long text but not able display it in the same container. Please someone help me how to refresh and update the container.
    Thanks in advance.

    Hi
    Try this.
      IF cl_gui_textedit  IS INITIAL.
      create control container
        CREATE OBJECT cl_gui_custom_container
           EXPORTING
                container_name = 'Container Name''
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create text_edit control
        CREATE OBJECT cl_gui_textedit
           EXPORTING
                parent = cl_gui_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
           EXCEPTIONS
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.
      ENDIF.
    *--use method to set the text
      CALL METHOD cl_text_edit->set_text_as_stream
        EXPORTING
          text            =  t_lines ( Internal table with long text).
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    regards,
    Raghu.

  • I lost the old tool bar with my bookmarts and nothing is the same. I hate it.

    When the latest update occurred, nothing has worked the same. The program worked fine until then. My bookmarks are not the same and almost unusable. I have to enter every web site address. Help.

    What do you mean by not the same, your own bookmarks are missing or rearranged.
    Since you say old toolbar, expect you are referring to the Bookmarks Toolbar.
    Bring up the Bookmarks Sidebar ("Ctrl+B"). If you look at the "Bookmarks Toolbar" there is everything okay there, and if you use "Alt" to see all of your toolbars, the bookmarks toolbar is messed up(or the Bookmarks Menu out of date). If so then see ..
    http://kb.mozillazine.org/Corrupt_localstore.rdf
    ''Take a picture of your toolbars first, so you can re-customize toolbars easily''

  • Can you sync your iPod touch with computer 1 for computer 1's iCal items and also sync the same iPod touch with computer 2 for computer 2's music, apps, etc. items?

    I have a MacBook Pro through my college, and I have all my iCal items on that computer, but I have all my music, apps, etc. on a PC desktop that is my personal home computer.  I am wondering if I can sync my iPod touch with my MacBook for the iCal items and also with my PC for the music and such without loosing either of the two when trying to sync with the other computer?

    Have a look Here  >  Managing content manually
    From Here  >  http://www.apple.com/support/iphone/syncing/

  • Why won't iTunes accept my credit card that is associated with my account, and it is the same card I have used since I opened my account?

    I have been using the same debit/credit card for my iTunes account since I opened it. It would not allow me to make purchases yesterday, saying that my card had been declined. Nothing is wrong with my card (I have used it at other places), and I have double and triple checked the information. Does anyone know if iTunes no longer allows the use of debit/credit cards to make purchases?

    In reading a former reply the replier stated "Make sure you enter the code exactly as it is on your card".  Meaning the 3 digit number on the back of your card not the pass code you enter into an ATM or when making a point of sale purchase in a store.  The security code refers to the number on the back of your card not the pass code you use when making a purchase.
    After making this change my account was set up with no problem.

  • Using three monitors with screen spanning and mirror at the same time

    I have a mac pro with two graphics cards and I currently have three monitors connected using screen spanning which works fine.
    But I would like to change this so the desktop is spanned over two monitors and the third monitor is a mirror of one of the other two.
    Is this possible?

    Thanks very much, perfect!
    Only thing is you don't need to press the "?" button. But it seems a little temperamental when you option + click + drag. I found you to have to deselect but clicking anywhere in the window and reselected the window you wish to mirror (which I assume press the "?" does the same thing).
    I never thought it was going to be this simple, I was sure I would need to install a third party app or something.
    Thanks again!!!!!!!

Maybe you are looking for

  • I am unable to open my Organiser in PSE8.

    Please help, I cannot get my PSE8 Organiser to open at all. I get an error saying that the organiser has unexpectedly quit. The editor will open as normal but I cant access the Organiser via the Editor either. The only two things that occured prior t

  • Different MOH for Internal and External Calls

    Is it possible to have a different MOH source for internal vs external calls. I know that Network MOH is for transfering but can this be used for external MOH source from the PSTN?

  • Parameter into a CREATE TABLE with PRO*C

    Hi, I use PRO*C and i've a problem with a CREATE TABLE request. My program asks for the name of my variable mission, quite simply that I get with a scanf. So, I want to create a table where one of the fields of the table must be the same that the cha

  • Cant transfer my music on my laptop

    I have a laptop with iTunes on it and it has all of my music on it. I can transfer songs to and from my iPod Mini easily and it works fine, but when I go to try and transfer music to my iPhone it wont do it. It says session has timed out. But I have

  • Is your GPS position 50-100 meters off center?

    For some reason, my GPS position is always 100 meters too far East. Anyone else have this problem? Can I calibrate it so I can shift the GPS position West 100 meters? Would the "Altitude Calibration" option in the GPS Data->Options help? The GPS posi