SlideShare une entreprise Scribd logo
1  sur  5
Supporting Search-As-You-Type Using SQL in Databases
ABSTRACT:
A search-as-you-type system computes answers on-the-fly as a user types in a
keyword query character by character. We study how to support search-as-you-
type on data residing in a relational DBMS. We focus on how to support this type
of search using the native database language, SQL. A main challenge is how to
leverage existing database functionalities to meet the high performance
requirement to achieve an interactive speed. We study how to use auxiliary indexes
stored as tables to increase search performance. We present solutions for both
single-keyword queries and multi keyword queries, and develop novel techniques
for fuzzy search using SQL by allowing mismatches between query keywords and
answers. We present techniques to answer first-N queries and discuss how to
support updates efficiently. Experiments on large, real data sets show that our
techniques enable DBMS systems on a commodity computer to support search-as-
you-type on tables with millions of records.
EXISTING SYSTEM:
Most search engines and online search forms support auto completion, which
shows suggested queries or even answers “on the fly” as a user types in a keyword
query character by character.
Since many search systems store their information in a backend relational DBMS,
a question arises naturally: how to support search-as-you-type on the data residing
in a DBMS? Some databases such as Oracle and SQL server already support prefix
search, and we could use this feature to do search-as-you-type. However, not all
databases provide this feature. For this reason, we study new methods that can be
used in all databases. One approach is to develop a separate application layer on
the database to construct indexes, and implement algorithms for answering queries.
DISADVANTAGES OF EXISTING SYSTEM:
 In an existing systems are not specially designed for keyword queries, making it
more challenging to support search-as-you-type.
 SQL meet the high performance requirement to implement an interactive search
interface.
 Some important functionality to support search-as-you-type requires join
operations, which could be rather expensive to execute by the query engine.
PROPOSED SYSTEM:
In this paper, we develop various techniques to address these challenges. we
propose two types of methods to support search-as-you-type for single-keyword
queries, based on whether they require additional index structures stored as
auxiliary tables.
We discuss the methods that use SQL to scan a table and verify each record by
calling a user-defined function (UDF) or using the LIKE predicate. We study how
to support fuzzy search for single-keyword queries.
We discuss a gram-based method and a UDF-based method. As the two methods
have a low performance, we propose a new neighborhood-generation based
method, using the idea that two strings are similar only if they have common
neighbors obtained by deleting characters.
We extend the techniques to support multi-keyword queries. We develop a word-
level incremental method to efficiently answer multi-keyword queries. Notice that
when deployed in a Web application, the incremental-computation algorithms do
not need to maintain session information, since the results of earlier queries are
stored inside the database and shared by future queries.
ADVANTAGES OF PROPOSED SYSTEM:
 A main challenge is how to utilize the limited expressive power of the SQL
language (compared with other languages such as C++ and Java) to support
efficient search.
 We study how to use the available resources inside a DBMS, such as the
capabilities to build auxiliary tables, to improve query performance.
 An interesting observation is that despite the fact we need SQL queries with
join operations, using carefully designed auxiliary tables, built-in indexes on
key attributes, foreign key constraints, and incremental algorithms using
cached results, these SQL queries can be executed efficiently by the DBMS
engine to achieve a high speed.
SYSTEM REQUIREMENTS:
HARDWARE REQUIREMENTS:
• System : Pentium IV 2.4 GHz.
• Hard Disk : 40 GB.
• Floppy Drive : 1.44 Mb.
• Monitor : 15 VGA Colour.
• Mouse : Logitech.
• Ram : 512 Mb.
SOFTWARE REQUIREMENTS:
• Operating system : - Windows XP.
• Coding Language : ASP.NET, C#.Net.
• Data Base : SQL Server 2005
REFERENCE:
Guoliang Li, Jianhua Feng,Member, IEEE, and Chen Li, Member, IEEE “
Supporting Search-As-You-Type Using SQL in Databases”- IEEE
TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, VOL.
25, NO. 2, FEBRUARY 2013.

Contenu connexe

Tendances

Tendances (9)

MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
 
Database Basics Taac 2005
Database Basics Taac 2005Database Basics Taac 2005
Database Basics Taac 2005
 
MS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database ConceptsMS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database Concepts
 
Building an unstructured data management solution with elastic search and ama...
Building an unstructured data management solution with elastic search and ama...Building an unstructured data management solution with elastic search and ama...
Building an unstructured data management solution with elastic search and ama...
 
Web Programming - 9 Create, Read, Update and Delete
Web Programming - 9 Create, Read, Update and DeleteWeb Programming - 9 Create, Read, Update and Delete
Web Programming - 9 Create, Read, Update and Delete
 
no sql presentation
no sql presentationno sql presentation
no sql presentation
 
12 SQL On-Hadoop Tools
12 SQL On-Hadoop Tools12 SQL On-Hadoop Tools
12 SQL On-Hadoop Tools
 
Learn Database Design with MySQL - Chapter 1 - What is a database
Learn Database Design with MySQL - Chapter 1 -   What is a databaseLearn Database Design with MySQL - Chapter 1 -   What is a database
Learn Database Design with MySQL - Chapter 1 - What is a database
 
Web Programming - 7 Blading Template
Web Programming - 7 Blading TemplateWeb Programming - 7 Blading Template
Web Programming - 7 Blading Template
 

En vedette

2012 13 ieee java titles - jp infotech
2012 13 ieee java titles - jp infotech2012 13 ieee java titles - jp infotech
2012 13 ieee java titles - jp infotech
JPINFOTECH JAYAPRAKASH
 
2015 2016 ieee matlab project titles
2015 2016 ieee matlab project titles2015 2016 ieee matlab project titles
2015 2016 ieee matlab project titles
JPINFOTECH JAYAPRAKASH
 
2012 13 ece ieee projects - jp infotech
2012 13 ece ieee projects - jp infotech2012 13 ece ieee projects - jp infotech
2012 13 ece ieee projects - jp infotech
JPINFOTECH JAYAPRAKASH
 
2013 2014 ieee project titles
2013 2014 ieee project titles2013 2014 ieee project titles
2013 2014 ieee project titles
JPINFOTECH JAYAPRAKASH
 

En vedette (19)

Tweet analysis for real time event detection and earthquake reporting system ...
Tweet analysis for real time event detection and earthquake reporting system ...Tweet analysis for real time event detection and earthquake reporting system ...
Tweet analysis for real time event detection and earthquake reporting system ...
 
Dynamic personalized recommendation on sparse data
Dynamic personalized recommendation on sparse dataDynamic personalized recommendation on sparse data
Dynamic personalized recommendation on sparse data
 
2012 13 ieee java titles - jp infotech
2012 13 ieee java titles - jp infotech2012 13 ieee java titles - jp infotech
2012 13 ieee java titles - jp infotech
 
A system to filter unwanted messages from osn user walls
A system to filter unwanted messages from osn user wallsA system to filter unwanted messages from osn user walls
A system to filter unwanted messages from osn user walls
 
2015 2016 ieee matlab project titles
2015 2016 ieee matlab project titles2015 2016 ieee matlab project titles
2015 2016 ieee matlab project titles
 
Cloud ftp a case study of migrating traditional applications to the cloud
Cloud ftp a case study of migrating traditional applications to the cloudCloud ftp a case study of migrating traditional applications to the cloud
Cloud ftp a case study of migrating traditional applications to the cloud
 
2012 13 ece ieee projects - jp infotech
2012 13 ece ieee projects - jp infotech2012 13 ece ieee projects - jp infotech
2012 13 ece ieee projects - jp infotech
 
final year ieee projects in pondicherry 2013
final year ieee projects in pondicherry 2013final year ieee projects in pondicherry 2013
final year ieee projects in pondicherry 2013
 
2013 2014 ieee project titles
2013 2014 ieee project titles2013 2014 ieee project titles
2013 2014 ieee project titles
 
Caching strategies based on information density estimation in wireless ad hoc...
Caching strategies based on information density estimation in wireless ad hoc...Caching strategies based on information density estimation in wireless ad hoc...
Caching strategies based on information density estimation in wireless ad hoc...
 
Meet you – social networking on android
Meet you – social networking on androidMeet you – social networking on android
Meet you – social networking on android
 
ieee projects 2013 for m.tech.
ieee projects 2013 for m.tech.ieee projects 2013 for m.tech.
ieee projects 2013 for m.tech.
 
2011 IEEE PROJECT TITLES
2011 IEEE PROJECT TITLES2011 IEEE PROJECT TITLES
2011 IEEE PROJECT TITLES
 
Collaborative learning assistant for android
Collaborative learning assistant for androidCollaborative learning assistant for android
Collaborative learning assistant for android
 
Reversible watermarking based on invariant image classification and dynamic h...
Reversible watermarking based on invariant image classification and dynamic h...Reversible watermarking based on invariant image classification and dynamic h...
Reversible watermarking based on invariant image classification and dynamic h...
 
Dynamic resource allocation using virtual machines for cloud computing enviro...
Dynamic resource allocation using virtual machines for cloud computing enviro...Dynamic resource allocation using virtual machines for cloud computing enviro...
Dynamic resource allocation using virtual machines for cloud computing enviro...
 
Resource allocation for qo s support in wireless mesh networks
Resource allocation for qo s support in wireless mesh networksResource allocation for qo s support in wireless mesh networks
Resource allocation for qo s support in wireless mesh networks
 
Optimal multiserver configuration for profit maximization in cloud computing
Optimal multiserver configuration for profit maximization in cloud computingOptimal multiserver configuration for profit maximization in cloud computing
Optimal multiserver configuration for profit maximization in cloud computing
 
Toward a statistical framework for source anonymity in sensor networks
Toward a statistical framework for source anonymity in sensor networksToward a statistical framework for source anonymity in sensor networks
Toward a statistical framework for source anonymity in sensor networks
 

Similaire à Supporting search as-you-type using sql in databases

Java supporting search-as-you-type using sql in databases
Java  supporting search-as-you-type using sql in databasesJava  supporting search-as-you-type using sql in databases
Java supporting search-as-you-type using sql in databases
ecwayerode
 
Dotnet supporting search-as-you-type using sql in databases
Dotnet  supporting search-as-you-type using sql in databasesDotnet  supporting search-as-you-type using sql in databases
Dotnet supporting search-as-you-type using sql in databases
Ecwaytech
 
Supporting search as-you-type using sql in databases
Supporting search as-you-type using sql in databasesSupporting search as-you-type using sql in databases
Supporting search as-you-type using sql in databases
Ecwayt
 
3 pages Research paper be sure to include 2 referencesResearch T.docx
3 pages Research paper be sure to include 2 referencesResearch T.docx3 pages Research paper be sure to include 2 referencesResearch T.docx
3 pages Research paper be sure to include 2 referencesResearch T.docx
gilbertkpeters11344
 
Sql interview question part 5
Sql interview question part 5Sql interview question part 5
Sql interview question part 5
kaashiv1
 

Similaire à Supporting search as-you-type using sql in databases (20)

Java supporting search-as-you-type using sql in databases
Java  supporting search-as-you-type using sql in databasesJava  supporting search-as-you-type using sql in databases
Java supporting search-as-you-type using sql in databases
 
Dotnet supporting search-as-you-type using sql in databases
Dotnet  supporting search-as-you-type using sql in databasesDotnet  supporting search-as-you-type using sql in databases
Dotnet supporting search-as-you-type using sql in databases
 
Supporting search as-you-type using sql in databases
Supporting search as-you-type using sql in databasesSupporting search as-you-type using sql in databases
Supporting search as-you-type using sql in databases
 
JPJ1420 Efficient Prediction of Difficult Keyword Queries over Databases
JPJ1420  Efficient Prediction of Difficult Keyword Queries over DatabasesJPJ1420  Efficient Prediction of Difficult Keyword Queries over Databases
JPJ1420 Efficient Prediction of Difficult Keyword Queries over Databases
 
professional fuzzy type-ahead rummage around in xml type-ahead search techni...
professional fuzzy type-ahead rummage around in xml  type-ahead search techni...professional fuzzy type-ahead rummage around in xml  type-ahead search techni...
professional fuzzy type-ahead rummage around in xml type-ahead search techni...
 
Intro sql/plsql
Intro sql/plsqlIntro sql/plsql
Intro sql/plsql
 
A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...
 
A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...A Review of Data Access Optimization Techniques in a Distributed Database Man...
A Review of Data Access Optimization Techniques in a Distributed Database Man...
 
Elastic search overview
Elastic search overviewElastic search overview
Elastic search overview
 
Efficient instant fuzzy search with proximity ranking
Efficient instant fuzzy search with proximity rankingEfficient instant fuzzy search with proximity ranking
Efficient instant fuzzy search with proximity ranking
 
ICT L5+.pptx
ICT L5+.pptxICT L5+.pptx
ICT L5+.pptx
 
Evaluation criteria for nosql databases
Evaluation criteria for nosql databasesEvaluation criteria for nosql databases
Evaluation criteria for nosql databases
 
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
 
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIESENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
 
Enhancing keyword search over relational databases using ontologies
Enhancing keyword search over relational databases using ontologiesEnhancing keyword search over relational databases using ontologies
Enhancing keyword search over relational databases using ontologies
 
3 pages Research paper be sure to include 2 referencesResearch T.docx
3 pages Research paper be sure to include 2 referencesResearch T.docx3 pages Research paper be sure to include 2 referencesResearch T.docx
3 pages Research paper be sure to include 2 referencesResearch T.docx
 
QUERY OPTIMIZATION FOR BIG DATA ANALYTICS
QUERY OPTIMIZATION FOR BIG DATA ANALYTICSQUERY OPTIMIZATION FOR BIG DATA ANALYTICS
QUERY OPTIMIZATION FOR BIG DATA ANALYTICS
 
Query Optimization for Big Data Analytics
Query Optimization for Big Data AnalyticsQuery Optimization for Big Data Analytics
Query Optimization for Big Data Analytics
 
Ebook5
Ebook5Ebook5
Ebook5
 
Sql interview question part 5
Sql interview question part 5Sql interview question part 5
Sql interview question part 5
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Supporting search as-you-type using sql in databases

  • 1. Supporting Search-As-You-Type Using SQL in Databases ABSTRACT: A search-as-you-type system computes answers on-the-fly as a user types in a keyword query character by character. We study how to support search-as-you- type on data residing in a relational DBMS. We focus on how to support this type of search using the native database language, SQL. A main challenge is how to leverage existing database functionalities to meet the high performance requirement to achieve an interactive speed. We study how to use auxiliary indexes stored as tables to increase search performance. We present solutions for both single-keyword queries and multi keyword queries, and develop novel techniques for fuzzy search using SQL by allowing mismatches between query keywords and answers. We present techniques to answer first-N queries and discuss how to support updates efficiently. Experiments on large, real data sets show that our techniques enable DBMS systems on a commodity computer to support search-as- you-type on tables with millions of records.
  • 2. EXISTING SYSTEM: Most search engines and online search forms support auto completion, which shows suggested queries or even answers “on the fly” as a user types in a keyword query character by character. Since many search systems store their information in a backend relational DBMS, a question arises naturally: how to support search-as-you-type on the data residing in a DBMS? Some databases such as Oracle and SQL server already support prefix search, and we could use this feature to do search-as-you-type. However, not all databases provide this feature. For this reason, we study new methods that can be used in all databases. One approach is to develop a separate application layer on the database to construct indexes, and implement algorithms for answering queries. DISADVANTAGES OF EXISTING SYSTEM:  In an existing systems are not specially designed for keyword queries, making it more challenging to support search-as-you-type.  SQL meet the high performance requirement to implement an interactive search interface.  Some important functionality to support search-as-you-type requires join operations, which could be rather expensive to execute by the query engine.
  • 3. PROPOSED SYSTEM: In this paper, we develop various techniques to address these challenges. we propose two types of methods to support search-as-you-type for single-keyword queries, based on whether they require additional index structures stored as auxiliary tables. We discuss the methods that use SQL to scan a table and verify each record by calling a user-defined function (UDF) or using the LIKE predicate. We study how to support fuzzy search for single-keyword queries. We discuss a gram-based method and a UDF-based method. As the two methods have a low performance, we propose a new neighborhood-generation based method, using the idea that two strings are similar only if they have common neighbors obtained by deleting characters. We extend the techniques to support multi-keyword queries. We develop a word- level incremental method to efficiently answer multi-keyword queries. Notice that when deployed in a Web application, the incremental-computation algorithms do not need to maintain session information, since the results of earlier queries are stored inside the database and shared by future queries.
  • 4. ADVANTAGES OF PROPOSED SYSTEM:  A main challenge is how to utilize the limited expressive power of the SQL language (compared with other languages such as C++ and Java) to support efficient search.  We study how to use the available resources inside a DBMS, such as the capabilities to build auxiliary tables, to improve query performance.  An interesting observation is that despite the fact we need SQL queries with join operations, using carefully designed auxiliary tables, built-in indexes on key attributes, foreign key constraints, and incremental algorithms using cached results, these SQL queries can be executed efficiently by the DBMS engine to achieve a high speed. SYSTEM REQUIREMENTS: HARDWARE REQUIREMENTS: • System : Pentium IV 2.4 GHz. • Hard Disk : 40 GB. • Floppy Drive : 1.44 Mb. • Monitor : 15 VGA Colour. • Mouse : Logitech.
  • 5. • Ram : 512 Mb. SOFTWARE REQUIREMENTS: • Operating system : - Windows XP. • Coding Language : ASP.NET, C#.Net. • Data Base : SQL Server 2005 REFERENCE: Guoliang Li, Jianhua Feng,Member, IEEE, and Chen Li, Member, IEEE “ Supporting Search-As-You-Type Using SQL in Databases”- IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, VOL. 25, NO. 2, FEBRUARY 2013.