Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:52:40+00:00 2026-06-11T19:52:40+00:00

I have 24,888 records that go into a SQLite table with FTS indexing. I

  • 0

I have 24,888 records that go into a SQLite table with FTS indexing. I load the table using .import from a set of .csv files with comma separators.

The platform is Linux – CentOS 6.2 with SQLite 3.6.20 as the supported version in this distribution.

This has all been working using FTS 3 to build a search system – with Apache and PHP.

To get FTS 4 functionality – with statistics I need – I recently manually updated to SQLite 3.7.13 – the newest.

Unfortunately, now when I import from .csv – whether to an FTS 3 or FTS 4 table I am missing over half the rows / records – I only get 12,224 instead of 24,888.

There are NO ERRORS reported during the import.

The last column in the data is a large (in some records) amount of text – up to 200K – 300K in a few cases. There are still some characters such as the curly double quotes or m-dash or n-dash in the text.

Is it possible that something is looking like end-of-file to the .immport code?

The word count utility ‘wc -l’ sees all 24,888 lines.

One final point, the .csv files were created using Python 2.6.6 running on the Linux system and any original line breaks were escaped (to ||) so I believe them to have uniform carriage control / line breaks. Maybe I’m missing some line-feed or carriage-return characters that SQLite 3.6 is ignoring but 3.7 is seeing???

I really need the additional FTS 4 capabilities (mostly to report statistics about search results using matchinfo) but it is no good if I cannot load all the data!

Thanks,
Laurence Brevard
San Jose, CA

[keywords2@keywords2c6x64 grant-import-tools]$ /usr/local/bin/sqlite3.7 --version
3.7.13 2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc

[keywords2@keywords2c6x64 grant-import-tools]$ /usr/bin/sqlite3 --version
3.6.20

[keywords2@keywords2c6x64 grant-import-tools]$ uname -a
Linux keywords2c6x64 2.6.32-220.23.1.el6.x86_64 #1 SMP Mon Jun 18 18:58:52 BST 2012 x86_64 x86_64 x86_64 GNU/Linux

[keywords2@keywords2c6x64 grant-import-tools]$ cat /etc/redhat-release 
CentOS release 6.2 (Final)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:52:41+00:00Added an answer on June 11, 2026 at 7:52 pm

    I fixed mine.

    Apparently double quote is now treated differently on comma separated files. I escaped them in the original source to two single quotes. After that all my lines import without a problem.

    It appears that once there is a double quote in a field, everything until the next double quote is treated as a single field. I guess.

    This is definitely different behavior starting after 3.7.7 and by 3.7.12.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have data in table a that i want to quench and create into
have 2 questions : A computer with 32-bit address uses 2-level page table (9
have a nice day. I got problem when trying to create an image from
I have this regex to test for telephone # that should be a toll
I have come accross the static HTML app for facebook pages that allows us
I have an ad code that I am embedding in a div and then
I have an application, which has a Spinner that I want populated with some
Ok so i have a variable $phone which contains the string (407)888-9999 and I
i have a table name preferences under this there are multiple columns but i
I have a menu bar using three effects: .transition{ -webkit-transition: all 0.3s ease-out; -moz-transition:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.