9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Getting started in Plan9 - help
@ 2002-01-21 20:39 Russ Cox
  2002-01-21 21:16 ` Matt H
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Russ Cox @ 2002-01-21 20:39 UTC (permalink / raw)
  To: 9fans

I think it might be neat to build a small number
of little programs that parse and reemit sql queries.
Thus you could use normal shell pipelines to do database
queries but since you're passing _queries_ and not _output_
through the pipes, you still reap the benefits of
query optimization.  Just like the old /acme/edit scripts.

I don't remember enough of the SQL syntax to
reparse your query into an exact shell pipeline, but
the idea is you could do something like

	sql/grep 'Car%' pages.title | sql/join section pages.idx |
	sql/p

Sql/p would behave like the acme p, actually executing
the query to produce output.

Of course, if there isn't much data, moving it into
the file system might be an even better solution.

Russ


^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [9fans] Database implementation
@ 2002-01-22 23:03 anothy
  2002-01-23  6:15 ` cej
  0 siblings, 1 reply; 18+ messages in thread
From: anothy @ 2002-01-22 23:03 UTC (permalink / raw)
  To: 9fans

i'm not sure if it's suitable for your needs, but i'm quite fond of
pq. there's a plan 9 distribution for it (a seperate package
available on the download page). it is based on plain text
files with delimiters, and can optionally work with indexes for
a substantial speed increase on very large data sets. even
without the indexes, it's reasonably snappy. the programs are
relatively small. a cousin of the version available for plan 9
runs (ran?) the corporate directories for Lucent and AT&T, and
a slightly more distant relative ran some public directory
service AT&T ran (can't remember the name). the protocol's
much simpler than SQL (for what _that's_ worth), and the
client doesn't need to know anything about the structure of
the tables or relations on the server.

a paper got written about it, but i'm not sure if it's available
to the non-Lucent world, or, if so, where.
ア



^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [9fans] Database implementation
@ 2002-01-23  6:10 Russ Cox
  0 siblings, 0 replies; 18+ messages in thread
From: Russ Cox @ 2002-01-23  6:10 UTC (permalink / raw)
  To: 9fans

it's on the update page between TeX and the release 2 sun sources.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2002-01-23 22:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-21 20:39 [9fans] Getting started in Plan9 - help Russ Cox
2002-01-21 21:16 ` Matt H
2002-01-21 23:39 ` Quinn Dunkan
2002-01-22 15:36 ` cej
2002-01-22 15:42   ` Matt H
2002-01-22 16:42     ` [9fans] Database implementation cej
2002-01-22 16:38       ` Boyd Roberts
2002-01-22 17:22         ` Matt H
2002-01-22 17:44         ` Quinn Dunkan
2002-01-22 23:02 ` [9fans] Getting started in Plan9 - help skipt
2002-01-23 10:05   ` Douglas A. Gwyn
2002-01-23 22:28     ` Lyndon Nerenberg
2002-01-22 23:03 [9fans] Database implementation anothy
2002-01-23  6:15 ` cej
2002-01-23  6:33   ` skipt
2002-01-23  7:39     ` cej
2002-01-23  9:40   ` William S.
2002-01-23  6:10 Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).