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 7939845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:13:25+00:00 2026-06-03T23:13:25+00:00

If I paginate from a temporary table, when do I drop the table? Does/can

  • 0

If I paginate from a temporary table, when do I drop the table? Does/can the table go into memory once it hits the front end so that the table can be dropped immediately? Or does it need to “hang around” until the user stops leafing through the pages?

  • 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-03T23:13:26+00:00Added an answer on June 3, 2026 at 11:13 pm

    From the MySQL 5.1 Reference Manual – 13.1.17 CREATE TABLE Syntax:

    A TEMPORARY table is visible only to the current connection, and is dropped automatically when the connection is closed. This means that two different connections can use the same temporary table name without conflicting with each other or with an existing non-TEMPORARY table of the same name. (The existing table is hidden until the temporary table is dropped.)

    • “If I paginate from a temporary table, when do I drop the table?”

      MySQL does it as soon as the connection is closed.


    From the MySQL 5.1 Reference Manual – 14.4. The MEMORY (HEAP) Storage Engine:

    The MEMORY storage engine creates tables with contents that are stored in memory. Formerly, these were known as HEAP tables. MEMORY is the preferred term, although HEAP remains supported for backward compatibility.

    The MEMORY storage engine associates each table with one disk file. The file name begins with the table name and has an extension of .frm to indicate that it stores the table definition.

    Example:

    CREATE TABLE test ENGINE=MEMORY
    SELECT ip,SUM(downloads) AS down
    FROM log_table GROUP BY ip;
    
    • Does/can the table go into memory once it hits the front end so that
      the table can be dropped immediately?

      Yes, the table with the search results can be placed into memory, thus providing faster access time.


    You can read more: MySQL Documentation: MySQL Reference Manuals

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

Sidebar

Related Questions

If one wants to paginate results from a data source that supports pagination we
I would like to somehow paginate my scroll function so that I can choose
I need to paginate on a set of models that can/will become large. The
I'd like to paginate through a randomly sorted list of ActiveRecord models (rows from
I'm using the will paginate gem from http://github.com/mislav/will_paginate Routes: map.resources :post do |post| post.resources
I am using Kaminari to paginate some results from a db query. I would
I'm using a JEditorPane to load some HTML content from a String so that
This is a query that totals up every players game results from a game
I'm trying to paginate a model using kaminari (0.13.0), but I can't get the
I am making a load more paginate button, I'm stuck at two things that

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.