Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. filtering Bulk data

filtering Bulk data

Scheduled Pinned Locked Moved C#
databasemysqltutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 3 Offline
    3 Offline
    333soori
    wrote on last edited by
    #1

    Hi all, I want to know the better way of filtering Bulk data, pls guide me... I have two flat files with lakhs of rows having 16 digit numbers. i want to filter the numbers from first file with second file , resulting in a unique identified numbers. I am doing it like this. I am inserting these data into two seperate tables using bulk insert in Mysql. And then from my web interface iam inputing two flat files, whenever user clicks on filter button iam querying tables with a select statement using NOT IN sql statement, but it is taking lot of time and even resuling in a connection timeout. So pls suggest me the best way of doing it. Thanks in advance.....

    T 1 Reply Last reply
    0
    • 3 333soori

      Hi all, I want to know the better way of filtering Bulk data, pls guide me... I have two flat files with lakhs of rows having 16 digit numbers. i want to filter the numbers from first file with second file , resulting in a unique identified numbers. I am doing it like this. I am inserting these data into two seperate tables using bulk insert in Mysql. And then from my web interface iam inputing two flat files, whenever user clicks on filter button iam querying tables with a select statement using NOT IN sql statement, but it is taking lot of time and even resuling in a connection timeout. So pls suggest me the best way of doing it. Thanks in advance.....

      T Offline
      T Offline
      Toshiya TSURU
      wrote on last edited by
      #2

      In many cases, "NOT IN" takes a lot of time. If the table has key column, I suggest following steps. 1. Insert key value, to be filtered, into temporary table. 2. Query with "NOT EXISTS" like "select .. from table where not exists ( select ... temporary_table where table.key = temporary_table.key )"

      ToshiyaTSURU turutosiya@gmail.com http://www.google.com/profiles/turutosiya

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups