Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [rgbworld] Need help with Sort by distance

Quote Reply
Re: [rgbworld] Need help with Sort by distance In reply to
I have not used temporary tables in recent versions of Links, so it might not work as expected, using the higher level calls, but here is a nice book excerpt on it (see the bottom of the article for the .pdf link)

http://dev.mysql.com/...l-db-design-ch5.html

You can also check the MySQL docs (http://mysql.org) for temporary table and get some extra quirks/bugs.

or here,
http://dev.mysql.com/...en/create-table.html
in the create table page.

Temporary tables _should_ work, since MySQL actually uses them internally for complex selects, so the "user session" should not be maintained beyond script iterations in Glinks (that's my only concern here).

Take a look at that short doc, above, and if you still have questions, I'll try to come up with some code later on, but it won't be until I'm awake, and that usually doesn't occur until well after dinner time for most people :{

But this is also where tricky caching can come into play. If you then query the database, for each of the available pages, (assuming there are 2 or 3) then stuff that result into a cache, when the user requests the next page, you check the cache first, then return the data, without re-doing the select/insert/select process. In exchange for a bit of disk space, you can cut repeat queries like this by thinking ahead.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Need help with Sort by distance rgbworld 13803 May 28, 2005, 7:04 AM
Thread Re: [rgbworld] Need help with Sort by distance
rgbworld 13688 May 28, 2005, 8:18 AM
Thread Re: [rgbworld] Need help with Sort by distance
pugdog 13669 May 28, 2005, 11:57 AM
Thread Re: [pugdog] Need help with Sort by distance
rgbworld 13674 May 28, 2005, 1:04 PM
Thread Re: [rgbworld] Need help with Sort by distance
rgbworld 13618 May 28, 2005, 4:36 PM
Thread Re: [rgbworld] Need help with Sort by distance
pugdog 13615 May 29, 2005, 4:28 AM
Thread Re: [pugdog] Need help with Sort by distance
rgbworld 13588 May 29, 2005, 11:24 AM
Thread Re: [rgbworld] Need help with Sort by distance
rgbworld 13563 May 29, 2005, 2:43 PM
Thread Re: [rgbworld] Need help with Sort by distance
rgbworld 13731 May 29, 2005, 4:38 PM
Thread Re: [rgbworld] Need help with Sort by distance
pugdog 13594 May 30, 2005, 9:51 PM
Thread Re: [pugdog] Need help with Sort by distance
rgbworld 13620 May 31, 2005, 12:33 AM
Thread Re: [rgbworld] Need help with Sort by distance
pugdog 13599 May 31, 2005, 10:33 AM
Thread Re: [pugdog] Need help with Sort by distance
rgbworld 13575 May 31, 2005, 12:17 PM
Thread Re: [rgbworld] Need help with Sort by distance
pugdog 13545 May 31, 2005, 7:13 PM
Thread Re: [pugdog] Need help with Sort by distance
rgbworld 13519 May 31, 2005, 9:28 PM
Thread Re: [rgbworld] Need help with Sort by distance
pugdog 13598 May 31, 2005, 10:25 PM
Thread Post deleted by rgbworld
rgbworld 13551 May 31, 2005, 11:25 PM
Thread Re: [rgbworld] Need help with Sort by distance
rgbworld 13530 May 31, 2005, 11:32 PM
Thread Re: [rgbworld] Need help with Sort by distance
rgbworld 13533 Jun 1, 2005, 2:11 AM
Thread Re: [rgbworld] Need help with Sort by distance
rgbworld 13503 Jun 2, 2005, 12:38 AM
Thread Re: [rgbworld] Need help with Sort by distance
pugdog 13531 Jun 2, 2005, 10:23 AM
Thread Re: [pugdog] Need help with Sort by distance
rgbworld 13462 Jun 5, 2005, 1:45 AM
Post Re: [rgbworld] Need help with Sort by distance
Alba 13261 Apr 17, 2006, 4:31 AM